Няма описание

123456789101112131415161718
  1. <?php
  2. /* @var $factory \Illuminate\Database\Eloquent\Factory */
  3. use App\Professor;
  4. use Faker\Generator as Faker;
  5. $factory->define(Professor::class, function (Faker $faker) {
  6. return [
  7. 'num_prof' => $faker->numerify('#########'),
  8. 'first_name' => $faker->firstName(),
  9. 'last_name' => $faker->lastName(),
  10. 'email' => $faker->email,
  11. 'type' => null,
  12. 'dept_id' => 1,
  13. ];
  14. });