I've a laravel route
Route::get('/find/mobiles','SearchController@byCategory');
I want send values to byCategory
method from the route file, something like $category='mobile' or $category = 'television'
I'm unable to find any way to do it.
I've a laravel route
Route::get('/find/mobiles','SearchController@byCategory');
I want send values to byCategory
method from the route file, something like $category='mobile' or $category = 'television'
I'm unable to find any way to do it.
Route:
Route::get('find/{category}, 'SearchController@byCategory');
Controller:
Public function byCategory($category){
... $category is whatever is passed from the route ...
}