2017 © Pedro Peláez
 

library laravel-cms

Work still in progress... Secured admin panel, website components creation, AMP layout, structured data, database management, media manager, image and video processing

image

helori/laravel-cms

Work still in progress... Secured admin panel, website components creation, AMP layout, structured data, database management, media manager, image and video processing

  • Monday, October 16, 2017
  • by Helori
  • Repository
  • 1 Watchers
  • 4 Stars
  • 110 Installations
  • Vue
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

laravel-cms

Installation and setup

laravel new my-project cd my-project, (*1)

Install Laravel Santum (API)

php artisan install:api
php artisan config:publish cors

Modify your .env file using your project name as follows :, (*2)

SESSION_DOMAIN=".my-project.test"
SANCTUM_STATEFUL_DOMAINS="my-project.test"

Modify your bootstrap/app.php file :, (*3)

->withMiddleware(function (Middleware $middleware) {
    $middleware->statefulApi();
})

Modify your config/cors.php as follows :, (*4)

'supports_credentials' => true,

Install Laravel CMS

composer require helori/laravel-cms
# This will create migrations for medias and updated users table
php artisan vendor:publish --tag=laravel-cms-migrations
# This will publish the app\Cms folder containing your CMS config :
php artisan vendor:publish --tag=laravel-cms-config
# This will publish the project's default config files for npm dependencies, tailwind, vite and postcss
php artisan vendor:publish --tag=laravel-cms-assets-setup --force
# This will publish sources files for the admin application
php artisan vendor:publish --tag=laravel-cms-assets-admin --force
# This will publish boilerplate files for the website (be careful when using --force to overwrite !)
php artisan vendor:publish --tag=laravel-cms-assets-website --force
npm i
npm run dev

Modify your bootstrap/app.php file :, (*5)

->withMiddleware(function (Middleware $middleware) {
    $middleware->redirectGuestsTo('/login');
    $middleware->redirectUsersTo('/admin');
})

Create a user :, (*6)

php artisan tinker
App\Models\User::create([
    'firstname' => 'John',
    'lastname' => 'Doe',
    'name' => 'John Doe',
    'email' => 'john@doe.com',
    'password' => bcrypt('password'),
]);
exit;

The Versions

16/10 2017

dev-master

9999999-dev

Work still in progress... Secured admin panel, website components creation, AMP layout, structured data, database management, media manager, image and video processing

  Sources   Download

MIT

The Requires

 

laravel cms

04/09 2017

v1.0.0

1.0.0.0

Work still in progress... Secured admin panel, website components creation, AMP layout, structured data, database management, media manager, image and video processing

  Sources   Download

MIT

The Requires

 

laravel cms