Adds latest episode api endpoint and some other minor modifications.

This commit is contained in:
2025-07-27 16:44:50 +00:00
parent 97b018f2bc
commit 667f0acd83
30 changed files with 3007 additions and 3336 deletions

View File

@@ -72,6 +72,7 @@ class ArtistController extends Controller
$artworks = Artwork::where('artist_id', $artist->id)
->with('episode')
->with('podcast')
->whereNotNull('approved_by')
->orderBy('artworks.created_at', 'desc')
->paginate($perPage = 92, $columns = ['*'], $pageName = 'artworks');
$podcasts = Podcast::where('published', true)->with('episodes')->get();