/**
* Run the database seeds.
*
* @return void
*/
public function run(Faker\Generator $faker)
{
DB::table('article')->insert([
'user_id'=>$faker->numberBetween(1,5),
'title'=>$faker->sentences(5),
'body'=>$faker->text(),
'created_at'=>Carbon::now(),
'updated_at'=>Carbon::now(),
]);
}
}
can't anybody help?? or do you have a Laravel comunity?
Обсуждают сегодня