This repository contains the code for the Laracasts TDD course. The course is a 44 part series that covers the basics of TDD, and how to apply it to your Laravel applications.
Create Birdboard: a minimal Basecamp-like project management app in Laravel 10.
Uses the Jetstream livewire scaffolding with Tailwind CSS.
Create a new MySQL database and update the .env
file with the database credentials.
composer install
php artisan migrate
npm install
-
Feature and Unit test functions are named
test_
followed by the name of the feature or unit being tested. -
Factories are used to generate dummy data for testing purposes. The
database/factories
directory contains the factory definitions for the models. Thedatabase/seeds
directory contains the seeders that use the factories to generate dummy data. -
The way that factories are created via
tinker
differs from the course vide and can be found in the Laravel documentation.
- php artisan tinker
- App\Models\Project::factory()->count(5)->create();