- Create .env file
php -r "file_exists('.env') || copy('.env.example', '.env');"
- Install packages
composer install
npm install
- Generate APP_KEY
php artisan key:generate
- Fill these fields in .env file to connect your DB
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
- Run migrations and seeders to fill DB with tables
php artisan migrate --seed
- Now run the following command to install shield:
php artisan shield:install
Choose yes to create super admin user
- Run project
php artisan serve