- Php 8.1
- Database (Mysql/Sqlite)
- Queue DB (Redis/Sqlite)
- MailPit (To Catch mail sent to client) or u can use service like MailTrap
- composer 2.0+ is required
- APP_NAME="Deer"
- Download binary file from here https://github.com/axllent/mailpit/releases
- Run the binary, it will run over port (1025, 8025)
- visit localhost:8025 for viewing mail received
- edit .env file to use Mailpit by editing MAIL_MAILER=smtp, MAIL_HOST=localhost, MAIL_PORT=1025
- REDIS_HOST=127.0.0.1
- REDIS_PASSWORD=null
- REDIS_PORT=6379
- QUEUE_CONNECTION=redis
- QUEUE_CONNECTION=database
- DB_CONNECTION=mysql
- DB_HOST=127.0.0.1
- DB_PORT=3306
- DB_DATABASE=laravel
- DB_USERNAME=root
- DB_PASSWORD=
- create a database.sqlite file inside database folder
- Edit config to use sqlite by adding
- DB_CONNECTION=sqlite
- DB_DATABASE=/mnt/d/queuedeerproject/database/database.sqlite (absolute full path to database). Change it according to ur location
php artisan migrate
./mailpit
php artisan queue:work
php artisan order [email protected] 30
command Signature is
php artisan order {email} {amount}
php artisan test