change configuration .env
APP_DEBUG=true
APP_KEY=
APP_TIMEZONE=UTC
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=DATABASE
DB_USERNAME=ROOT
DB_PASSWORD=PASSWORD
CACHE_DRIVER=file
QUEUE_DRIVER=sync
composer update && composer install
php artisan migrate
php artisan db:seed --class=ContactSeeder
- docker-compose exec app php artisan migrate
- docker-compose exec app php artisan db:seed --class=ContactSeeder
GET api/v1/contact ==> to get all the contact data from database
GET api/v1/contact/{id} ==> using method get to read a specific ID
POST api/v1/contact/ ==> Post to create new data
PUT api/v1/contact/{id} ==> put method to update by id
DELETE api/v1/contact/{id} ==> delete method to remove specific value or id
make rebuild
to build image spesified in docker-composemake install
to install (automatic build and run in the background) and also exec php artisan to migrate databasemake stop
to stop running containermake test
to open up localhost using chrome, assuming you have chrome installed on your system.