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
Requires
- akaunting/setting: ^1.2
- awssat/laravel-visits: ^3.0
- barryvdh/laravel-debugbar: ^3.5
- glhd/aire: ^2.3
- glhd/aire-bootstrap: ^2.0
- guzzlehttp/guzzle: ^7.2
- laravel/ui: ^3.1
- laravelcollective/html: ^6.2
- spatie/laravel-permission: ^3.17
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); }); }); }); });