function setOfferLocation(Offer $offer) { $location = Location::findOrFail(Input::get('location_id')); $offer->location()->associate($location); $offer->save(); return view('offer_location_changed')->with(['offer' => $offer]); }
public function show($id) { $location = Location::findOrFail($id); return view('admin.pages.location.show', compact('location')); }