Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function run()
- {
- $user = new User();
- $user->name = "DarHor";
- $user->email = "adam1360@op.pl";
- $user->password = bcrypt("haslo");
- $user->save();
- $user->roles()->attach(1);
- $user = new User();
- $user->name = "DarHor2";
- $user->email = "adam13602@op.pl";
- $user->password = bcrypt("haslo");
- $user->save();
- $user->roles()->attach(1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement