Laravel Faker - What's the difference between create and make

Viewed 14242

I have the following code:

$this->actingAs(factory('App\User')->create());

$thread = factory('App\Thread')->make();

what is the difference between create() and make() and why is it not listed in the helper functions page in the Laravel documentation? Thank you! :)

2 Answers
Laravel create method is created the model instance and save data in the database.
Make function has created the instance of the class.

click here for more info

Related