Last updated 4 years ago
Route::get('/user', function(){ factory(\App\User::class,5)->create(); });
Route::get('/user', function(){ \App\Address::create([ 'user_id' => 1, 'country' => 'Ha Nam 1' ]); \App\Address::create([ 'user_id' => 2, 'country' => 'Ha Nam 2' ]); \App\Address::create([ 'user_id' => 3, 'country' => 'Ha Nam 3' ]); \App\Address::create([ 'user_id' => 4, 'country' => 'Ha Nam 4' ]); \App\Address::create([ 'user_id' => 5, 'country' => 'Ha Nam 5' ]); });