A repo to study test cases in Laravel
Clone the project
git clone https://github.com/gbrramos/laravel-api-test-cases
Entre no diretório do projeto
cd laravel-api-test-cases
Create the .env file with .env.example as an example
Run the migrations
php artisan migrate
Run tests
./vendor/bin/phpunit
Or
php artisan test
Run server
php artisan serve
or
php -S localhost:8000 -t ./public