I have got an error
MethodNotAllowedHttpException
when I am using 'post' in my route:
Route::post('SeeDetail', [
'uses' => 'DataController@SeeDetail',
'as' => 'SeeDetail'
]);
But, if I am using 'get' in my route, there's no error but I have a data_id
in the link (localhost/survey/public/SeeDetail?data_id=1).
Do you know how to make the data_id
disappear from the link (localhost/survey/public/SeeDetail)?
Button in my view like this:
<a href="{{ route('SeeDetail', ['data_id'=>$getData->data_id])}}" class="btn btn-default">