Exemplo n.º 1
0
 /**
  * List Staff Method
  *
  * @return view
  */
 public function ListStaff()
 {
     $users = Users::paginate(15);
     return view('admin.liststaff', ['users' => $users]);
 }
Exemplo n.º 2
0
 /**
  * Create a new user instance after a valid registration.
  *
  * @param  array  $data
  * @return User
  */
 protected function create(array $data)
 {
     return Users::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]);
 }