This project provides examples of design patterns.
Laravel 10 with PHP 8.2.9.
-
Clone the repository
-
Install dependencies
composer install
- Run the server
docker-compose up
docker exec -it container-name bash
php artisan test
-
Strategy Pattern Example:
Displays a different message depending on the day of the week.
-
Observer Pattern Example:
Notifies multiple devices when an email is received.