jeudi 22 juillet 2021

Convert array to controller laravel?

In controller:

public function store(Request $request)
{
  $data = $request->all();
  dd($data);
}

Result : {"name":"Joni","age":"18"}

I want to convert it to an array ? give me ideas.Thanks



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

Aucun commentaire:

Enregistrer un commentaire