/** * The index of the Admin section * * @return View */ public function index() { return view('admin.index', ['studios' => Studio::all()]); }
/** * Display the artist's followers * * @return View */ public function edit() { $user = Auth::user(); if (!$user->social) { $user->avatar = url('uploads/images/small/' . $user->avatar); } //if user is artist, load artist profile view if ($user->type == 'artist') { $artist = Artist::where('user_id', $user->id)->first(); $studios = Studio::all(); $artist->cover = url('uploads/images/small/' . $artist->cover); return view('pages.profile.artist.edit', ['user' => $user, 'artist' => $artist, 'studios' => $studios]); } //member can't have followers. so redirect to profile return view('pages.profile.member.edit', ['user' => $user]); }
public function getIndex() { $studios = Studio::all(); return view('home.index', compact('studios')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return view('studios.index')->with('studios', Studio::all()); }