vendredi 29 juillet 2016

Exclude Laravel-specific values from request

I want to run json_encode($request->all()) after a form is submitted, however the returned array is "polluted" with _method and _token values.

Is there any neat way to exclude the framework-specific fields from the generated json?



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

Aucun commentaire:

Enregistrer un commentaire