public function getIndex() { $videos = SFVideos::all(); // $videos = SFVideos::where('category','=','1')->get(); $args = array('route' => $this->route, 'videos' => $videos); return View::make('backend.videos.index')->with($args); }
public function getVideos($id) { $args = array('news' => SFNews::find($id), 'videos' => SFVideos::all(), 'route' => $this->route); return View::make('backend.news.videos')->with($args); }
public function getIndex() { $videos = SFVideos::all(); $args = array('videos' => $videos, 'route' => self::$route); return View::make('frontend.video.index')->with($args); }