Laravel Auth::attempt 302 Found
I am a new to Laravel. I'm trying to write a login example but it shows "302 Found" error. web.php ( Route file ) : Route::post('login', array( 'uses' => 'UserController@doLogin' )); Route::get('logout', array('uses' => 'UserController@doLogout')); Route::group(['middleware' => 'AuthMiddleWare'], function () { Route::get('/form', function () { return view('form'); }); Route::get('/createUser', function () { return view('users'); }); Route::get('logout', array( 'uses' => 'UserController@doLogout' )); }); "doLogin" function codes which located in UserController: public function doLogin() { $rule
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.