Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function postAuth(Request $request)
- {
- $this->validate($request, [
- 'email' => 'required',
- 'password' => 'required|max:30'
- ]);
- if( Auth::attempt(['email' => $request->input('email'), 'password' => $request->input('password')]) )
- {
- Session::flash('success', 'You was successfully login');
- } else {
- Session::flash('error', 'Not incorecct email or password');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement