CMS


License
MIT

Documentation

CMS

Cms Package

Init

Add

Schema::defaultStringLength(191);

In your Providers/AppServiceProvider.php

and to your .env file add:

ADMIN_DOMAIN=admin.YOUR_DOMAIN FRONT_DOMAIN=YOUR_DOMAIN

And use command

php artisan cms:start --install

Warning!

Using this command can break application, so use it only on project Init!

And then

php artisan logs:install

Styles

Add

mix.sass('resources/sass/AdminPanel/main.scss', 'public/admin/vendor/admin-panel/css/adminPanel.css')
.sass('resources/sass/admin/skin.scss', 'public/admin/css');
.sass('resources/sass/admin/custom.scss', 'public/admin/css');

In your webpack.mix.js

And run npm run dev

Commands

  • cms:start {--install} {--update}
    • creates storage:link and storage structure
    • --install - first command that should be run after downloading the package
    • --update - run this when it is specified in update notes
  • make:cms:directories - checks and creates necessary directories
  • make:cms:globalWidget - create global widget
  • make:cms:section - create custom section
  • make:cms:widgetTemplate {name?} - create custom widget
  • make:cms:model {model_name} - create source model

Updates

1.0.4 -> 1.1

php artisan cms:start --update

1.3.2.3 -> 1.4

  • added preview front page button
  • updated languageChange.blade.php
  • add localisation for app.pages.buttons.previewPage