We were talking about Laravel 5 on its release, we are pleased today to welcome Laravel 5.1
In controller:
public function store(Request $request) { $data = $request->all(); dd($data); }
Result : {"name":"Joni","age":"18"}
{"name":"Joni","age":"18"}
I want to convert it to an array ? give me ideas.Thanks
Aucun commentaire:
Enregistrer un commentaire