Example #1
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     // Delete Artist from Database
     $this->artist->delete();
     // Fire the Event and the Listeners
     event(new DeletedArtist($this->artist));
 }
Example #2
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'));
 }
Example #3
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     // Save Artist to database
     $artist = Artist::create($this->request);
     // Launch Created Artist Event
     event(new SavedArtist($artist, 'stored'));
 }
 /**
  * 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']);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $this->dispatch(new DeleteArtist(Artist::find($id)));
     return redirect()->route('admin.artists.index');
 }
 /**
  * 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);
 }
 /**
  * Show the form for editing the specified booking.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $booking = Booking::find($id);
     $artists = Artist::lists('name', 'permalink');
     return view('admin.booking.edit', compact('booking', 'artists'));
 }
Example #8
0
 /**
  * Show Artist Profile
  * 
  * @return Response
  */
 public function artistShow($permalink)
 {
     $artist = Artist::ArtistDetails($permalink)->first();
     return view('public.artists.show', compact('artist'));
 }
Example #9
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle()
 {
     $this->artist->update($this->request);
     \Event::fire(new SavedArtist($this->artist, 'updated'));
 }
Example #10
0
 /**
  * Display artist profile
  *
  * @param  string $permalink
  * @param  Request $request
  * @return Response
  */
 public function artistProfile($permalink, Request $request)
 {
     $page = 'artists';
     $path = $request->segments();
     $artist = Artist::artistPublicProfile($permalink)->first();
     return view('public.artists.artist-profile', compact('page', 'path', 'artist'));
 }