I have a problem when saving text fields in Laravel
in controller, return $_POST; gives:
"positions":{"9":"1","10":"2","11":"3","12":"4","34":"5","13":"6"}
but return $Request::all(); gives:
"positions":["6","5","4","3","2","1"]
Why this happens? I need the array result in the same format as in $_POST variable...
use Request; is on Illuminate\Support\Facades\Request::class, Laravel 5.3
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lKyZje
via IFTTT
Aucun commentaire:
Enregistrer un commentaire