Ejemplo n.º 1
0
 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]);
 }
Ejemplo n.º 2
0
 public function show($id)
 {
     $location = Location::findOrFail($id);
     return view('admin.pages.location.show', compact('location'));
 }