Here are my routes in my laravel 5 application,
Route::get('demotest', 'HomeController@demo_test');
Route::post('demo_result', 'HomeController@demo_result');
In my first route view i have a from with action {{ url('demo_result') }}
if a user submits the form it will post to my second route and everything working fine, here after submitting form my route changing to demo_result
which is an post route.
Now the problem is if any user directly trying to access demo_result
it is showing following error.
So how to handle the issue. I tried to check whether the request is empty but no use. I am using use Illuminate\Http\Request;
to handle request.