Request get method route handling

I am using laravel 5 . I want to set route like

http://localhost:8000/website/product-search-data?term=k

I also tried with

Route::get('/website/product-search-data/*', 'websiteController@searchProductList');
public function searchProductList($term)
{
dd($term);
}

But its providing me Sorry, the page you are looking for could not be found. How can I handle and get parameer value ?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3bBrffE
via IFTTT

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time