I want to pass multiple parameter from href and want to get with Input::get() in my function. I get this error :
bad method call exception Method [show] does not exist error.
My route is: Route::get('workorder/test', 'WorkOrderController@test');
and passing on this way
<a class="btn btn-primary btn-xs" title="Edit" href="">
<i class="fa fa-edit text-white"></i>
</a>
I want to get from my function:
public function test() {
echo Input::get('work_order_id');exit;
}
These are my routes for the given controller:
Route::resource('workorder', 'WorkOrderController');
Route::get('workorder/filter', 'WorkOrderController@filter');
Route::post('workorder/proceedworkorder', 'WorkOrderController@proceedworkorder');
Route::get('workorder/addworkorder', 'WorkOrderController@addworkorder');
Route::get('workorder/approve/{id?}', 'WorkOrderController@approve');
Route::get('workorder/decline/{id?}', 'WorkOrderController@decline');
Route::get('workorder/test', 'WorkOrderController@test');
I am not sure why I am getting this error.
via Alamin Dawan