db:seed cleanup

This commit is contained in:
StudioTem committed 2023-01-24 21:54:03 +01:00
1 parent 33499107b7
commit dfac41f30a
9 files changed
+75 -18

No files matched your search

+2 -2
View File
@@ -20,12 +20,12 @@ class ProjectFactory extends Factory
{
$name = fake()->country();
$client = Client::factory('App\Models\Client')->create();
$client = Client::all()->random();
return [
'client_id' => $client->id,
'name' => 'Project ' . $name,
'code' => strtoupper(substr($name, 0, 3)) . '-2023-' . rand(1, 9),
'code' => strtoupper(substr($name, 0, 3)) . '-2023-' . rand(1, 50),
];