$factory->define(App\Question::class, function (Faker $faker) { return [ 'title' => rtrim($faker->sentence(rand(5, 10)), "."), //rtrim 뒤에 점제거 'body' => $faker->paragraphs(rand(3,...
시더
38LARAVEL on 20-03-29
1. tinker 콘솔에서 유저수를 추가하고 싶을때factory(App\User::class,3)->create()