This is an example of a creating separate admin panel using auth with Laravel
After clone you can run it
Getting Started
- Clone the repository and install composer packages by running:
composer update
- Create .env file from env.example
copy .env.example .env
- Generate Application Key for your application.
php artisan key:generate
- Run migration for create users table, admins tables :
php artisan migrate --seed
- Run your Laravel application
php artisan serve
-
Go to http://127.0.0.1:8000/admin/login , login as password:.
-
You will see dashboard page after successful authentication
-
Now go to http://127.0.0.1:8000/admin/dashboard , this route only accessible if user loggedin