Laravel

How to pass laravel route to controller with multiple parameters?

Laravel route to controller with multiple parameters

Views

Hello to all, welcome to therichpost.com. In this post, I will tell you, How to pass laravel route to controller with multiple parameters?  Laravel is the best php mvc framework.

In this post, we will send multiple parameters to controller from laravel route.

Here is complete working and tested code:
web.php file code:
Route::get('/payment-summary/filter/{startDate}/{endDate}/{location}/{staff}/{voucher}','Reports\Finances\PaymentSummaryController@getFilterResponse');
 PaymentSummaryController.php file code:
public function getFilterResponse($startDate = null, $endDate= null, $location= null, $staff= null, $voucher= null) 
{ 
 //code
}

 If you have any query related to this post, then please do comment below.

Ajay Malhotra
the authorAjay Malhotra
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am full stack developer. I love coding. I know Wordpress, Core php, Angularjs, Angular 2, Angular 6, Angular 7, laravel, Codeigniter, Shopify, Squarespace, Jquery, Google Map Api, Vuejs, Reactjs, Bigcommerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Positive SSL