Laravel Microservice - Factory Classes + Database Seeding + Unit Tests
This week, we focused on database structure, attribute casting, and testing strategies to build a more robust Laravel microservice. We designed our Google Subscription DTO, set up migrations, lookup data, and seeders, and ensured test consistency by seeding the test database.
On the testing side, we explored factory classes, refactoring for testability, custom exceptions, and using test doubles with Mockery. We also covered handling expected exceptions to improve test reliability. Every lesson moves us closer to a fully testable and maintainable Laravel microservice! 🚀
Full course here 👉 https://www.garyclarke.tech/p/laravel-microservice
Git repo here 👉 https://github.com/GaryClarke/laravel-microservice
#Laravel #PHP #Testing
Видео Laravel Microservice - Factory Classes + Database Seeding + Unit Tests канала Gary Clarke
On the testing side, we explored factory classes, refactoring for testability, custom exceptions, and using test doubles with Mockery. We also covered handling expected exceptions to improve test reliability. Every lesson moves us closer to a fully testable and maintainable Laravel microservice! 🚀
Full course here 👉 https://www.garyclarke.tech/p/laravel-microservice
Git repo here 👉 https://github.com/GaryClarke/laravel-microservice
#Laravel #PHP #Testing
Видео Laravel Microservice - Factory Classes + Database Seeding + Unit Tests канала Gary Clarke
Gary Clarke laravel microservices laravel microservices laravel course laravel tutorial php microservices laravel webhooks webhook handling laravel routes laravel seeders laravel eloquent laravel models laravel database laravel factories laravel migrations laravel validation laravel middleware laravel controllers laravel api laravel beginners laravel advanced laravel json php laravel laravel php microservices architecture laravel framework
Комментарии отсутствуют
Информация о видео
18 февраля 2025 г. 14:00:16
00:09:22
Другие видео канала