Быстрая настройка

На этой странице приводится быстрая настройка основных файлов конфигурации, необходимых для правильной работы Rock.Cms.

AdminLTE

Блок с адресами

// config/adminlte.php

'use_route_url' => false,
'dashboard_url' => '/',
'logout_url' => 'admin/logout',
'login_url' => 'admin/login',
'register_url' => '',
'password_reset_url' => '',
'password_email_url' => 'password/email',
'profile_url' => false,

Блок с плагинами

// config/adminlte.php

'plugins' => [
    'Chosen' => [
        'active' => true,
        'files' => [
            [
                'type' => 'js',
                'asset' => true,
                'location' => '/vendor/chosen/chosen.jquery.min.js',
            ],
            [
                'type' => 'css',
                'asset' => true,
                'location' => '/vendor/chosen/component-chosen.min.css',
            ],
        ],
    ],
    'Sortable' => [
        'active' => true,
        'files' => [
            [
                'type' => 'js',
                'asset' => false,
                'defer' => true,
                'location' => '/vendor/livewire-sortable/livewire-sortable.js',
            ],
        ],
    ],
    'Summernote' => [
        'active' => true,
        'files' => [
            [
                'type' => 'js',
                'asset' => true,
                'location' => '/vendor/summernote/summernote-bs4.min.js',
            ],
            [
                'type' => 'js',
                'asset' => true,
                'location' => '/vendor/summernote-cleaner/summernote-cleaner.js',
            ],
            [
                'type' => 'css',
                'asset' => true,
                'location' => '/vendor/summernote/summernote-bs4.min.css',
            ],
        ],
    ],
    'SummernoteAttributes' => [
        'active' => true,
        'files' => [
            [
                'type' => 'js',
                'asset' => true,
                'location' => '/vendor/summernote-attributes/summernote-image-attributes.js',
            ],
            [
                'type' => 'js',
                'asset' => true,
                'location' => '/vendor/summernote-attributes/ru-RU.js',
            ],
        ],
    ],
    'Moment' => [
        'active' => true,
        'files' => [
            [
                'type' => 'js',
                'asset' => false,
                'location' => '/vendor/moment/moment.min.js',
            ],
            [
                'type' => 'js',
                'asset' => false,
                'location' => '/vendor/moment/locale/ru.js',
            ],
        ],
    ],
    'Tempusdominus' => [
        'active' => true,
        'files' => [
            [
                'type' => 'css',
                'asset' => false,
                'location' => '/vendor/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css',
            ],
            [
                'type' => 'js',
                'asset' => false,
                'location' => '/vendor/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js',
            ],
        ],
    ],
    'Lightbox' => [
        'active' => true,
        'files' => [
            [
                'type' => 'css',
                'asset' => false,
                'location' => '/vendor/ekko-lightbox/ekko-lightbox.css',
            ],
            [
                'type' => 'js',
                'asset' => false,
                'location' => '/vendor/ekko-lightbox/ekko-lightbox.js',
            ],
        ],
    ],
],

Подключение livewire

// config/adminlte.php

'livewire' => true,

Laravel Breadcrumbs

// config/breadcrumbs.php

'view' => 'breadcrumbs::bootstrap4',
'files' => glob(base_path('routes/breadcrumbs/*.php')),

Last updated