Skip to content

Commit a025bda

Browse files
fix(seeders): standardize email and name formatting in UserSeeder and update avatar URLs
1 parent 8e6c245 commit a025bda

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

database/seeders/UserSeeder.php

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -69,54 +69,54 @@ public function run(): void
6969

7070
// Specific patient for login and testing
7171
User::firstOrCreate(
72-
['email' => "[email protected]"],
72+
['email' => '[email protected]'],
7373
[
74-
'name' => "joeytribbiani",
75-
'email' => "[email protected]",
74+
'name' => 'joeytribbiani',
75+
'email' => '[email protected]',
7676
'password' => config('app.admin_password'),
77-
'avatar' => 'https://static.wikia.nocookie.net/friends/images/4/43/10joey.png/revision/latest/scale-to-width-down/1000?cb=20241104084824',
77+
'avatar' => 'https://media.licdn.com/dms/image/v2/C5112AQEgwYpYwOEYCw/article-cover_image-shrink_600_2000/article-cover_image-shrink_600_2000/0/1520089367852?e=2147483647&v=beta&t=3hWnvOr-xyYEtpJPI6YMc54tKeiApvsHIL8YU40S2lE',
7878
]
7979
)->assignRole('Patient');
8080

8181
// Specific doctor for login and testing
8282
User::firstOrCreate(
83-
['email' => "[email protected]"],
83+
['email' => '[email protected]'],
8484
[
85-
'name' => "dr.housemd",
86-
'email' => "[email protected]",
85+
'name' => 'dr.housemd',
86+
'email' => '[email protected]',
8787
'password' => config('app.admin_password'),
88-
'avatar' => 'https://garrisonmarketinggroup.com/wp-content/uploads/2022/05/0003_article-dr-house-netflix.jpg'
88+
'avatar' => 'https://garrisonmarketinggroup.com/wp-content/uploads/2022/05/0003_article-dr-house-netflix.jpg',
8989
]
9090
)->assignRole('Doctor');
9191

9292
// Specific attendant user for testing
9393
User::firstOrCreate(
94-
['email' => "[email protected]"],
94+
['email' => '[email protected]'],
9595
[
96-
'name' => "pam.beesly",
97-
'email' => "[email protected]",
96+
'name' => 'pam.beesly',
97+
'email' => '[email protected]',
9898
'password' => config('app.admin_password'),
99-
'avatar' => 'https://static0.colliderimages.com/wordpress/wp-content/uploads/2025/09/the-office-jenna-fischer-2.jpg'
99+
'avatar' => 'https://static0.colliderimages.com/wordpress/wp-content/uploads/2025/09/the-office-jenna-fischer-2.jpg',
100100
]
101101
)->assignRole('Attendant');
102102

103103
// Specific manager user for testing
104104
User::firstOrCreate(
105-
['email' => "[email protected]"],
105+
['email' => '[email protected]'],
106106
[
107-
'name' => "tony-soprano",
108-
'email' => "[email protected]",
107+
'name' => 'tony-soprano',
108+
'email' => '[email protected]',
109109
'password' => config('app.admin_password'),
110-
'avatar' => 'https://static.wikia.nocookie.net/sopranos/images/8/8c/Tony_Soprano_Season_1.png'
110+
'avatar' => 'https://static.wikia.nocookie.net/sopranos/images/8/8c/Tony_Soprano_Season_1.png',
111111
]
112112
)->assignRole('Manager');
113113

114114
// Banned user for testing
115115
User::firstOrCreate(
116-
['email' => "[email protected]"],
116+
['email' => '[email protected]'],
117117
[
118-
'name' => "banned_user",
119-
'email' => "[email protected]",
118+
'name' => 'banned_user',
119+
'email' => '[email protected]',
120120
'password' => config('app.admin_password'),
121121
]
122122
)->assignRole('Banned');
@@ -129,11 +129,9 @@ public function run(): void
129129

130130
/**
131131
* Add a random number of days (0-30) to a date string.
132-
*
133-
* @return string
134132
*/
135133
private function addRandomDays(): string
136134
{
137-
return '+' . rand(0, 30) . ' days';
135+
return '+'.rand(0, 30).' days';
138136
}
139137
}

0 commit comments

Comments
 (0)