/** * Run the database seeds. * * @return void */ public function run() { $profile = \App\Profile::first(); factory(\App\Blog\Article::class, 20)->create(['profile_id' => $profile->id]); }
/** * Run the database seeds. * * @return void */ public function run() { $profile = \App\Profile::first(); factory(\App\Blog\Article::class, 20)->create(['profile_id' => $profile->id]); }