public function addLocation(Request $request) { $addressData = $this->formAddress($request); $addressData['shop_id'] = $request->get('shop_id'); $addressData['open_from'] = $request->get('open_from'); $addressData['open_to'] = $request->get('open_to'); $locId = Address::addLocation($addressData); return Response::json($locId); }