git clone https://github.com/saurabh2k1/laravel_api.git
cd laravel_api
composer install
- Create .env file by copying .env.example
cp .env.example .env
- Create key and migrate the database
php artisan key:generate
php artisan migrate:fresh
- OR if you want seed the database with sample roles and permissions than
php artisan migrate:fresh --seed --seeder=PermissionsSeeder
- If you want only Super Admin call the AdminSeeder
php artisan migrate:fresh --seed --seeder=AdminSeeder