public function LastTabs() { $LastTenTabs = Song_data::orderBy('created_at', 'desc')->paginate(7); $LastTenTabs->setPath('laravel/public/lasttabs/'); $title1 = 'Last'; $title = 'Tabs'; return view('infoSongDisplayer')->with('LastTenTabs', $LastTenTabs)->with('title1', $title)->with('title', $title); }
public function indexLogged() { $AllSongInfo = Song_data::orderBy('id', 'desc')->take(5)->get(); $AllVideosInfo = Videos::orderBy('id', 'desc')->take(5)->get(); $LastVideo = Videos::orderBy('id', 'desc')->first(); return view('index2')->with('AllSongInfo', $AllSongInfo)->with('AllVideosInfo', $AllVideosInfo)->with('LastVideo', $LastVideo); }