There is a famous quote by James Grenning, one of the pioneers in TDD and Agile development methodologies: If you’re not doing test-driven development, you’re doing debug-later development - James Grenning Today we’ll be going on a Laravel journey driven by tests. We’ll create a Laravel REST API complete with authentication and CRUD functionality without opening Postman or a browser. 😲 Note: This walkthrough assumes that you understand the basic concepts of Laravel and PHPUnit . If you’ve got that out of the way? Let’s drive. Setting up the project Start by creating a new Laravel project with composer create-project --prefer-dist laravel/laravel tdd-journey . Next, we need to run the authentication scaffolder that we would use, go ahead and run php artisan make:auth then php artisan migrate . We will not actually be using the routes and views generated. For this project, we would be using jwt-auth . So go ahead and ...