Без опису

DepartmentFactory.php 237B

123456789101112
  1. <?php
  2. /* @var $factory \Illuminate\Database\Eloquent\Factory */
  3. use App\Department;
  4. use Faker\Generator as Faker;
  5. $factory->define(Department::class, function (Faker $faker) {
  6. return [
  7. 'name' => $faker->text(),
  8. ];
  9. });