Загрузка...

#04 - Testing Database | Laravel 12 Testing Tutorial

#04 - Testing Database in Laravel | Laravel 12 Testing Tutorial

In this video, we dive into database testing in Laravel 12. You’ll learn how to refresh the database before running tests, use model factories, seeders inside tests, write database assertions, test soft deletes, and verify database relationships.

📂 Source Code: All the tests shown in this video are available here:
👉 GitHub Repository: https://github.com/Abdogoda/LARAVEL_TESTS

⏱ Video Timeline
00:20 – Refreshing database
05:29 – Model factories
09:01 – Seeders in test
15:10 – Database assertions
18:13 – Testing soft deletes
21:39 – Test database relationships

By the end, you’ll know how to write database tests that keep your application’s data layer consistent and reliable.

---

#Laravel #LaravelTesting #PHPUnit #Pest #Laravel12 #DatabaseTesting #Factories #Seeders #SoftDeletes #TDD #LaravelForBeginners #TestingInLaravel

Видео #04 - Testing Database | Laravel 12 Testing Tutorial канала Abdulrhman Goda
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять