fix: modifying borken profile items (#7)
Reviewed-on: #7 Co-authored-by: Paul Couture <paul@paulcouture.com> Co-committed-by: Paul Couture <paul@paulcouture.com>
This commit was merged in pull request #7.
This commit is contained in:
@@ -23,6 +23,7 @@ class ArtistController extends Controller
|
||||
$user = auth()->user();
|
||||
$artists = Artist::whereHas('artworks')
|
||||
->withCount('artworks')
|
||||
->withCount('episodes')
|
||||
->orderBy('artworks_count', 'desc')
|
||||
->paginate(100);
|
||||
$podcasts = Podcast::where('published', true)->get();
|
||||
@@ -65,6 +66,8 @@ class ArtistController extends Controller
|
||||
{
|
||||
$user = auth()->user();
|
||||
$artist = Artist::where('slug', $slug)
|
||||
->withCount('episodes')
|
||||
->withCount('artworks')
|
||||
->firstOrFail();
|
||||
$artworks = Artwork::where('artist_id', $artist->id)
|
||||
->with('episode')
|
||||
|
||||
Reference in New Issue
Block a user