예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $artists = Artist::get()->all();
     $artists = Artist::paginate(15);
     return view('artists.index', compact('artists'));
     //compact hace un arreglo
 }
예제 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $artist = Artist::get();
     return view('artist.index', compact('artist'));
 }
예제 #3
0
 /**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $artists = Artist::get()->all();
     return view('tracks.create', compact('tracks', 'artists'));
 }