- Install composer dependencies
composer install
- Create
.env
file (cloning .env.example file) - Update database credentials in
.env
file
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=<your_database>
DB_USERNAME=<your_password>
DB_PASSWORD=<your_username>
- Setup mailtrap.io for email testing, update credentials in
.env
file
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=<your_username>
MAIL_PASSWORD=<your_password>
- Generate Application key
php artisan key:generate
- Run database migration
php artisan migrate
- Start Development Server
php artisan serve
- Start Queue worker for executing Jobs (optional)
php artisan queue:work
- Install composer dependencies
composer install
- Run PHP Unit Testing
php artisan test