/** * Show the application dashboard to the user. * * @return Response */ public function index() { $artistas = Artista::get()->all(); $canciones = Cancion::get()->all(); $canciones = Cancion::paginate(10); return view('canciones.index', compact('canciones', 'artistas')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $artistas = Artista::get()->all(); return view('artistas.index', compact('artistas')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $artistas = Artista::get()->all(); return view('canciones.create', compact('artistas')); }