- Create
.env
file from.env.example
and configure it - Run
composer install
andphp artisane migrate
- Run
php artisan key:generate --ansi
for generate application key
- Run
php artisan serve
or setting up any web server - Run
php artisan queue:work
for start queue
- Run
php artisan test
for run Unit test
- Send POST request to
{yourHost}/api/submission
with body
{
"name": "John Doe",
"email": "[email protected]",
"message": "This is a test message."
}
- After the request is complete, you can check for proper operation as follows:
- In database table
submission
exist new record with your data from request - Exist file
storage/logs/submission.log
and contain message about success saving submission andname
andemail
from your request
- In database table