-
Navigate to the project folder
cd project-folder
-
Create a .env file and copy the required key value pairs from .env.example
touch .env
-
Fire up docker to setup the database
docker compose up -d
-
Migrate the database
php artisan migrate
-
Start dev server
php artisan serve
-
Reset the db back to basics
php artisan migrate:refresh
-
Seed data to the db
php artisan db:seed
-
Reset the db back to basics and seed data at the same time
php artisan migrate:refresh --seed
-
Generate your application encryption key
php artisan key:generate