Base Admin LTE Control Panel Templates
Run from the command line:
composer require fomvasss/laravel-its-lte
php artisan lte:install
That's all. You can usage ITS LTE in your project :)
Visit the path http://your-site.test/lte
Of course, you can publish only the necessary system components:
- views:
lte-view-fields
,lte-view-content
,lte-view-auth
,lte-view-parts
,lte-view-layouts
,lte-view-profile
- other:
lte-config
,lte-assets
,lte-lang
php artisan lte:publish --tag=lte-view-fields --force
or all components
php artisan lte:publish
When updating this package, you should re-publish the assets (css, js, images):
php artisan lte:publish --tag=lte-assets --force
After publishing assets, its primary configuration file will be located at config/its-lte.php
<?php
return [
'title' => env('APP_NAME', '') . ' - Dashboard',
'logo' => env('LTE_LOGO', '<b>ITS</b>LTE'),
'logo_mini' => env('LTE_LOGO_MINI', '<b>IT</b>LT'),
/*
* Dashboard home page path
*/
'logo_href' => '/lte',
/*
* For example pages
*/
'prefix' => 'lte',
/*
* For /profile page
*/
'use_laravel_fortify' => true,
/*
* For LTE example pages (/lte/*)
*/
'middleware' => ['web'],
/**
* Use in Fomvasss\ItsLte\Http\Middleware\ApplyRequestOptions
*/
'control' => [
'next_destination_key' => 'destination',
],
'view' => [
/**
* Available skins:
* skin-blue, skin-black, skin-purple, skin-green, skin-red,
* skin-yellow, skin-blue-light, skin-black-light, skin-purple-light,
* skin-green-light, skin-red-light, skin-yellow-light,
*
*/
'skin' => 'skin-purple',
'layout_boxed' => false,
'sidebar_collapse' => false,
'fixed' => false,
/**
* Show next type alerts in dashboard
* Example success type alert: \Session::flash('success', 'Welcome to Laravel Admin LTE!');
* Available types: success, info, warning, error
*
*/
'alerts' => [
'toastr',
//'sweetalert',
//'bootstrap',
],
'btn_actions_class' => 'btn-xs', //'btn-sm btn-flat'
/**
* Example aside menu
*/
'aside_menu' => [
'static' => false,
'static_example' => env('APP_ENV') !== 'production',
'lte' => env('APP_ENV') !== 'production',
],
'aside_auth_user_info' => false,
'aside_search' => false,
'header_filter_languages' => true,
'header_notify_menus' => true,
],
];
In dashboard used Bootstrap styles and for correct show pagination links, set next in service provider
public function boot()
{
//...
Paginator::useBootstrap();
//...
}
For correct work navigation in dashboard, apply next middleware for routes to dashboard:
\Fomvasss\ItsLte\Http\Middleware\ApplyRequestOptions::class,
After installation, you can work with the following files:
config/its-lte.php
- configspublic/vendor/its-lte
- compiled assets filesresources/lang/vendor/lte
- message localization filesresources/views/vendor/lte
layouts
- main layoutparts
- not published by defaultfields
- not published by defaultauth
- auth/register/reset formscontent
- example templates for contentprofile
- auth user profile form
If needed, install LFM:
composer require unisharp/laravel-filemanager
Publish LFM files: config/lfm.php
, public/vendor/laravel-filemanager
:
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public
Recommend set LFM paths config/lfm.php
:
'shared_folder_name' => 'shares',
//...
'folder_categories' => [
'file' => [
'folder_name' => 'lfm-files',
//...
],
'image' => [
'folder_name' => 'lfm-photos',
//...
],
],
In dir resources/views/vendor/lte
you can edit, create, delete blade-files.
For simple manage file-fields use fomvasss/laravel-medialibrary-extension