public function action_gallery($galleryID) { if (Auth::guest()) { Session::put('lastURL', URI::full()); } Galleries::incrementViews($galleryID); $images = Images::fromGallery($galleryID); return View::make('home.gallery')->with('images', $images)->with('galleryID', $galleryID); }