php - Why i can not register and login in Laravel 5.2? -


i have faced problem laravel 5.2 login , register.i used here laravel 5.2 default login.blade.php , register.blade.php.all things going when trying register user , fill form , submit not insert data in database , same page show in browser window.browser did not showed error though have made debug true.

here routes.php:

<?php  use app\member; use illuminate\http\request;  /* |-------------------------------------------------------------------------- | routes file |-------------------------------------------------------------------------- | | here register of routes in application. | it's breeze. tell laravel uris should respond | , give controller call when uri requested. | */  route::get('/', function () {    return view('welcome'); });    route::get('/home', function () {    return view('home'); });  route::get('/members', 'membercontroller@index'); route::post('/member', 'membercontroller@store'); route::delete('/member/{member}', 'membercontroller@destroy');  // authentication routes... route::get('auth/login', 'auth\authcontroller@getlogin'); route::post('auth/login', 'auth\authcontroller@postlogin'); route::get('auth/logout', 'auth\authcontroller@logout'); // registration routes... route::get('auth/register', 'auth\authcontroller@getregister'); route::post('auth/register', 'auth\authcontroller@postregister');    /* |-------------------------------------------------------------------------- | application routes |-------------------------------------------------------------------------- | | route group applies "web" middleware group every route | contains. "web" middleware group defined in http | kernel , includes session state, csrf protection, , more. | */  route::group(['middleware' => ['web']], function () {      // });  route::group(['middleware' => 'web'], function () {     route::auth();      route::get('/home', 'homecontroller@index'); }); 

i have read many question in stackoverflow.but failed solve problem.here link of questions:

for find solution if need files please let me know.then provide here.

you've read answer, you're not applying correctly. auth requires sessions. route needs session information should inside web middleware group.

right now, member, members, auth/login, auth/logout, auth/register, 'home', , / routes outside of web middleware group, none of them have session information available (meaning none of them show users logged in).


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -