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.

22 lines
536 B

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