Friday, February 2, 2018

how to get value of url in laravel - development

how to get value of url in laravel

I have this route:
Route::post('/apns/v1/devices/{device_token}/registrations/{pass_identifier}/{pass_serial}', 'ApiController@registrations');

How do i get the values of device_token, pass_identifier and pass_serial and save them in a variable in my controller?

For example:
POST /v1/devices/3252362643/registrations/passtype.test/4312

i want to get the value 3252362643, passtype.test and 4312.

save them in variables in laravel controller.



from Laravel Questions and Answers https://laravelquestions.com/php/how-to-get-value-of-url-in-laravel/
via Lzo Media

No comments:

Post a Comment