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

تعليقات

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

How to Create Treeview with Bootstrap and jQuery

Api routes not found when hosted laravel application on server

How to Add Images to Dropdown List using jQuery