Monday, May 22, 2017

In Laravel, what's the difference between ->create() and ->make()

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! :)



via Simon Suh

Advertisement