In laravel 5.3, I can submit a form from my project when i logged in admin but when I logout from admin and submit the same form without refresh the page I get a TokenMismatchException.
My route:
Route::group(['prefix' => 'admin', 'middleware' => ['backend']], function()
{
Route::get('logout', 'Auth\LoginController@logout')->name('user.logout');
});
My Form:
{!! Form::open(['route' => ['contactus.store'], 'method'=> 'POST', 'id' => 'contact_us_form']) !!}
<?php echo Form::text('name', NULL, ['placeholder' => 'name', 'class' => 'form-control', 'id' => 'name']); ?>
{!! Form::close() !!}