public function get_mp4() { $mp4 = MP4::remember(120)->latest()->paginate(30); $mp4_count = MP3::remember(120)->count(); $title = 'Administrayon Videyo (' . $mp4_count . ')'; return View::make('admin.mp4.index')->withTitle($title)->withMp4s($mp4)->withmp4Count($mp4_count); }
public function getIndex() { $mp3s = MP3::remember(120)->latest()->published()->take(3)->get(); $mp4s = MP4::remember(120)->latest()->take(3)->get(); $data = ['mp3s', 'mp4s']; return View::make('home', compact($data)); }
public function index() { $data = ['mp4s' => MP4::remember(120)->latest()->paginate(10), 'title' => 'Navige Tout Videyo Yo']; return View::make('mp4.index', $data); }