Migrations, Seeders, Models, Resources for User, Client, Project, Team, Mastertask, Subtask, Timeblock, Timesheet, Attachment

This commit is contained in:
StudioTem committed 2023-01-24 17:38:24 +01:00
1 parent 30ae7dab84
commit 8d88c0c4e6
35 files changed
+910 -14

No files matched your search

+9 -6
View File
@@ -17,15 +17,18 @@ class UserFactory extends Factory
*/
public function definition()
{
$firstname = fake()->firstname();
$lastname = fake()->lastname();
return [
'email' => fake()->unique()->safeEmail(),
'email' => strtolower($firstname . '.' . $lastname . '@jandl.sk'),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'remember_token' => Str::random(10),
'firstname' => fake()->firstname(),
'lastname' => fake()->lastname(),
'code' => strtoupper(Str::random(3)),
'work_start' => '9.0',
'work_end' => '17.0',
'firstname' => $firstname,
'lastname' => $lastname,
'code' => strtoupper(substr($firstname, 0, 1) . substr($lastname, 0, 2)),
'work_start' => rand(7, 10) . '.0',
'work_end' => rand(15, 18) . '.0',
];
}