$user1 = factory(App\User::class)->create(); // create and saves the mode using the factory
$user2 = factory(App\User::class)->make(); // crates a model using the factory but does not save
$user2->save(); // save
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community