Laravel Testing 04/24: Database Configuration: RefreshDatabase, Phpunit.xml and .env.testing

preview_player
Показать описание

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

I really appreciate you give us for free this video course, its great see a non simple subject aproached by a good teacher.

DougLopes
Автор

I prefer using the LazilyRefreshDatabase trait from Laravel 8.x on the base TestCase, so that I don’t have to remember to add RefreshDatabase to every test. Plus, it makes the tests slightly cleaner.

KastsEcho
Автор

Leaving a comment just to thank you! 😄

cheketo
Автор

how do we seed though, after running the migrations

zamphox
Автор

Hi sir, what about DatabaseTransactions?

aluisiopires
Автор

for me laravel ignores .env.testing and uses the main database

mr.madness