with array add key and value laravel code example Example: how push to array whit key in laravel array_push($arraye , ['title'=>$data['title'] , 'desc'=> $data['desc']]);