samedi 18 février 2017

How do I get the value of multiple IDs in a Laravel API request

I have Laravel acting as an API serving a request from an Emberjs app.

The app requests multiple ID's

vipExperiences?ids=6&ids=4

In my Laravel controller, $request->input('ids') returns just the last ID (i.e. 4) where I would expect an array or something with both.

How do I best get it to return multiple ID's?



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

Aucun commentaire:

Enregistrer un commentaire