Created
October 27, 2021 20:10
-
-
Save spham/7ba5ed38efbd33f61739e40ee74ec6b1 to your computer and use it in GitHub Desktop.
seeder user admin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserSeeder: | |
$user = User::where('email', '[email protected]')->first(); | |
User::create([ | |
'name' => '[email protected]', | |
'email' => '[email protected]', | |
'password' => Hash::make('[email protected]'), | |
]); | |
DatatabaseSeeder.php: | |
$this->call(UserSeeder::class); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment