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
22 lines
536 B
<?php
|
|
|
|
/** @var Factory $factory */
|
|
|
|
use App\Models\Project;
|
|
use Illuminate\Support\Str;
|
|
use Faker\Generator as Faker;
|
|
|
|
$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,
|
|
];
|
|
});
|