[Laravel5.2] mengatasi error “Session store not set on request”

setikit kaget ketika memulai project baru, nyoba bikin authentikasi ternyata ketemu error “Session store not set on request”. dan solusinya adalah, cukup dengan memindahkan route authentikasi ke route web midleware. jadi, kira2 semacam ini:
Route::group([‘middleware’ => [‘web’]], function () {

Route::get(‘login’, ‘Auth\AuthController@getLogin’);
Route::post(‘login’, ‘Auth\AuthController@postLogin’);
Route::get(‘logout’, ‘Auth\AuthController@getLogout’);
Route::get(‘register’, ‘Auth\AuthController@getRegister’);
Route::post(‘register’, ‘Auth\AuthController@postRegister’);
});

kesimpulannya, simpulkan sendiri. saya juga gak ngerti kenapa-kenapanya. belum paham betul dengan laravel.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s