CMS
Cms Package
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
Using this command can break application, so use it only on project Init!
And then
php artisan logs:install
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
cms:start {--install} {--update}
--install
- first command that should be run after downloading the package--update
- run this when it is specified in update notesmake:cms:directories
- checks and creates necessary directoriesmake:cms:globalWidget
- create global widgetmake:cms:section
- create custom sectionmake:cms:widgetTemplate {name?}
- create custom widgetmake:cms:model {model_name}
- create source modelphp artisan cms:start --update
app.pages.buttons.previewPage