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

<?php
/** @var Factory $factory */
use App\Project;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factory;
use Illuminate\Support\Str;
$factory->define(Project::class, function (Faker $faker) {
return [
'business_id' => null,
'name' => $name = $faker->words(3, true),
'slug' => Str::slug($name),
'private' => false,
'budget' => 0,
'start' => null,
'finish' => null,
'color' => $faker->colorName,
'active' => rand(0, 1),
'description' => $faker->paragraph,
];
});