canView(Auth::user())) App::abort(404); if ($track->slug != $slug) return Redirect::action('TracksController@getTrack', [$id, $track->slug]); return View::make('tracks.show'); } public function getShortlink($id) { $track = Track::find($id); if (!$track || !$track->canView(Auth::user())) App::abort(404); return Redirect::action('TracksController@getTrack', [$id, $track->slug]); } }