mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
db:seed cleanup
This commit is contained in:
1 parent
33499107b7
commit
dfac41f30a
9 files changed
+75
-18
No files matched your search
@@ -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),
|
||||
];
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user