composer
docker
composer install
cp .env.example .env
DB_DATABASE=visionable
DB_USERNAME=visionable
DB_PASSWORD=visionable
WWWGROUP=1000
WWWUSER=1000
Select MariaDB at the prompt.
php artisan sail:install
./vendor/bin/sail up
./vendor/bin/sail artisan migrate
./vendor/bin/sail artisan test --filter ClinicControllerTest
./vendor/bin/sail artisan test --filter AppointmentControllerTest
You may also import and call the routes using the provided Postman workspace.
composer
php
mariadb
composer install
composer dumpautoload
cp .env.example .env
extension=mysqli
extension=pdo_mysql
Create a mariadb user named visionable, with password visionable, and database named visionable.
APP_URL=http://localhost:8000
DB_DATABASE=visionable
DB_USERNAME=visionable
DB_PASSWORD=visionable
php artisan migrate
php artisan serve
php artisan test --filter ClinicControllerTest
php artisan test --filter AppointmentControllerTest
You may also import and call the routes using the provided Postman workspace. Make sure the address:port is correct as it expects to work with the server started by Sail and not local.
These commands will clear all caches.
php artisan config:clear
php artisan cache:clear
php artisan route:clear
php artisan view:clear
php artisan optimize
Generate a fresh database.
php artisan migrate:fresh
I considered guarding the api with user authentication, so Laravel's Breeze framework is in place, but I felt it complicated the ask so it has not been fully implemented.