/** * List Staff Method * * @return view */ public function ListStaff() { $users = Users::paginate(15); return view('admin.liststaff', ['users' => $users]); }
/** * 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'])]); }