Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  string $permalink
  * @return \Illuminate\Http\Response
  */
 public function edit($permalink)
 {
     $artists = Artist::orderBy('id')->lists('name');
     $track = Track::where('permalink', $permalink)->first();
     $release_permalink = Release::where('id', $track->release_id)->pluck('permalink');
     return view('admin/tracks/edit', compact('artists', 'track', 'release_permalink'));
 }
 /**
  * Display the artists sitemap
  *
  * @return \Illuminate\Http\Response
  */
 public function artists()
 {
     $artists = Artist::orderBy('created_at', 'desc')->select(['created_at', 'permalink'])->get();
     return Response::view('public/sitemap/artists', ['artists' => $artists], 200, ['Content-Type' => 'text/xml; charset=UTF-8']);
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  string $permalink
  * @return \Illuminate\Http\Response
  */
 public function edit($permalink)
 {
     $variables = ['artists' => Artist::orderBy('id')->lists('name', 'id'), 'release' => Release::where('permalink', $permalink)->first(), 'tags' => Tag::lists('name', 'id')];
     return view('admin/releases/edit', $variables);
 }