As we build our new project so often , We need a more convenient way to avoid these boring work for user managerment , such as: New , Modify , Delete.
- Run composer require lostgdi/admin-account
- Add Lostgdi\Admin\App\Providers\AdminServiceProvider::class, to providers in config/app.php
- Add 'Admin' => Lostgdi\Admin\App\Facades\Admin::class, to aliases in config/app.php
- Add 'auth_admin_account' => \Lostgdi\Admin\App\Http\Middleware\AuthenticateAdminAccount::class, to routeMiddleware in app/http/kernel.php
- Add 'auth_admin_account_manager' => \Lostgdi\Admin\App\Http\Middleware\AuthenticateAdminAccountManager::class, to routeMiddleware in app/http/kernel.php
- Run php artisan vendor:publish
- Run php artisan migrate
- Run php artisan db:seed --class=DatabaseSeeder_user