Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public function index()
 {
     $data = ['mp4s' => MP4::remember(120)->latest()->paginate(10), 'title' => 'Navige Tout Videyo Yo'];
     return View::make('mp4.index', $data);
 }