Answer the question
In order to leave comments, you need to log in
How to work with the database in Laravel tests?
Welcome all!
I'm doing functional tests for a Laravel application. Several questions emerged.
I state. :)
1. Differences between make and create factory methods
factory(App\User::class)->make();
factory(App\User::class)->create();
Answer the question
In order to leave comments, you need to log in
If I understand correctly, then create() writes to the database table, and make() only creates a model object. Correctly?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question