alqudiry/lite-admin

Ready dashboard for your application

Installs: 112

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

1.0 2020-11-23 06:19 UTC

This package is auto-updated.

Last update: 2024-11-23 15:06:31 UTC


README

lite admin package create your dashboard with users, roles and settings with only one line.

Installation

composer require alqudiry/lite-admin

Publish

php artisan vendor:publish --provider="Alqudiry\LiteAdmin\LiteAdminServiceProvider"

Configuration

Update your "App\Http\Kernel.php" to include appMiddleware class:

'appMiddleware' => \App\Http\Middleware\AppMiddleware::class,

Update your "routes\web.php" to include this routes:

Route::group(['middleware' => 'appMiddleware'], function () {
    
    Route::get('/', function () {
        return view('index');
    })->name('home');

    Auth::routes();
    

    Route::group(['middleware' => 'auth'], function () {
    
        Route::group(['prefix' => 'dashboard', 'as' => 'dashboard.'], function () {

            Route::group(['prefix' => 'core', 'as' => 'core.'], function () {

                Route::get('statistics', [\App\Http\Controllers\Dashboard\Core\StatisticsController::class, 'index'])->name('statistics.index');
                
                Route::group(['prefix' => 'settings', 'as' => 'settings.'], function () {

                    Route::resource('general', \App\Http\Controllers\Dashboard\Core\Settings\GeneralController::class)->only('index', 'store');
                    Route::resource('mail', \App\Http\Controllers\Dashboard\Core\Settings\MailController::class)->only('index', 'store');
    
                });

                Route::resource('roles', \App\Http\Controllers\Dashboard\Core\RolesController::class);
                Route::resource('users', \App\Http\Controllers\Dashboard\Core\UsersController::class);
            
            });

        });

    });

});

You Are Ready ..