SHARE
TWEET

Untitled

a guest Sep 21st, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected function create(array $data)
  2.     {
  3.         return User::create([
  4.             'name' => $data['name'],
  5.             'email' => $data['email'],
  6.             'password' => Hash::make($data['password']),
  7.         ])->roles()->create([
  8.             'key' => 'value'
  9.         ]);
  10.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top