mardi 22 juin 2021

Laravel get method parameters cannot be fetched

I faced a weird issue in Laravel today, the version am using is Laravel 5.5 and I have defined a route as below in the application.

 Route::get('getplaylist/{playlistid}/{page}', 'Mycontroller@getplaylist');

And in my controller am trying to fetch the parameters, weirdly

dd($request->all()); // results in empty array []

whereas the below one works,

dd($request->playlistid);

Any help would be appreciated on what is happening behind the scenes. The issue am facing is am not able to validate the request since an empty '[]' array is resulted.



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

Aucun commentaire:

Enregistrer un commentaire