You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
571 B

  1. <?php
  2. /** @var Factory $factory */
  3. use App\Project;
  4. use Faker\Generator as Faker;
  5. use Illuminate\Database\Eloquent\Factory;
  6. use Illuminate\Support\Str;
  7. $factory->define(Project::class, function (Faker $faker) {
  8. return [
  9. 'business_id' => null,
  10. 'name' => $name = $faker->words(3, true),
  11. 'slug' => Str::slug($name),
  12. 'private' => false,
  13. 'budget' => 0,
  14. 'start' => null,
  15. 'finish' => null,
  16. 'color' => $faker->colorName,
  17. 'active' => rand(0, 1),
  18. 'description' => $faker->paragraph,
  19. ];
  20. });