@@ -35,29 +35,32 @@ public function superAdmin(?string $email = null)
3535 {
3636 return $ this
3737 ->state (fn (array $ attributes ) => [
38- 'email ' => $ email ?: \config ('app.seed.emails.super ' ),
38+ 'email ' => \config ('app.seed.users.super.email ' ),
39+ 'password ' => \config ('app.seed.users.super.password ' ),
3940 ])
4041 ->afterCreating (function (User $ user ) {
4142 $ user ->assignRole (Role::SUPER_ADMIN ->value );
4243 });
4344 }
4445
45- public function admin (? string $ email = null )
46+ public function admin ()
4647 {
4748 return $ this
4849 ->state (fn (array $ attributes ) => [
49- 'email ' => $ email ?: \config ('app.seed.emails.admin ' ),
50+ 'email ' => \config ('app.seed.users.admin.email ' ),
51+ 'password ' => \config ('app.seed.users.admin.password ' ),
5052 ])
5153 ->afterCreating (function (User $ user ) {
5254 $ user ->assignRole (Role::ADMIN ->value );
5355 });
5456 }
5557
56- public function user (? string $ email = null )
58+ public function user ()
5759 {
5860 return $ this
5961 ->state (fn (array $ attributes ) => [
60- 'email ' => $ email ?: \config ('app.seed.emails.user ' ),
62+ 'email ' => \config ('app.seed.users.user.email ' ),
63+ 'password ' => \config ('app.seed.users.user.password ' ),
6164 ])
6265 ->afterCreating (function (User $ user ) {
6366 $ user ->assignRole (Role::USER ->value );
0 commit comments