説明なし

CourseFactory.php 364B

123456789101112131415
  1. <?php
  2. /* @var $factory \Illuminate\Database\Eloquent\Factory */
  3. use App\Course;
  4. use Faker\Generator as Faker;
  5. $factory->define(Course::class, function (Faker $faker) {
  6. return [
  7. 'code' => $faker->unique()->bothify('????####'),
  8. 'dept_id' => 1,
  9. 'syllabus' => $faker->optional()->text(255),
  10. 'title' => $faker->text(),
  11. ];
  12. });