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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire