/** * Display a listing of the resource. * * @return Response */ public function index() { //Recuperar todos los articulos $tracks = Track::all(); $artists = Artist::all(); $tracks = Track::paginate(15); return view('tracks.index', compact('tracks', 'artists')); //compact hace un arreglo }