fomvasss/laravel-its-lte

Base Control Panel Templates

Installs: 803

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 27

Language:JavaScript

4.24.0 2023-10-12 10:16 UTC

This package is auto-updated.

Last update: 2024-11-12 12:41:19 UTC


README

License Build Status Latest Stable Version Total Downloads Quality Score

Base Admin LTE Control Panel Templates

screenshot

Installation

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

Publishing (optional)

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

Updating

When updating this package, you should re-publish the assets (css, js, images):

php artisan lte:publish --tag=lte-assets --force

Configuration

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,

Structure

After installation, you can work with the following files:

  • config/its-lte.php - configs
  • public/vendor/its-lte - compiled assets files
  • resources/lang/vendor/lte - message localization files
  • resources/views/vendor/lte
    • layouts - main layout
    • parts - not published by default
    • fields - not published by default
    • auth - auth/register/reset forms
    • content - example templates for content
    • profile - auth user profile form

Laravel File Manager (v2)

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',
            //...
        ],      
    ],

Usage

In dir resources/views/vendor/lte you can edit, create, delete blade-files.

For simple manage file-fields use fomvasss/laravel-medialibrary-extension

Credits