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

تعليقات

المشاركات الشائعة من هذه المدونة

BlueHost Web Hosting Review: Secrets Revealed for Shared Hosting

How to Create Treeview with Bootstrap and jQuery

Submit Form using jQuery AJAX and PHP without Page Refresh