/** * Navigate to the website of an advert * * @param int $id The id of the advert * @return Redirect */ public function url($id) { $advert = Advert::published()->findOrFail($id); $advert->access_counter++; $advert->save(); return Redirect::to($advert->url); // Go to advert website }