Adds latest episode api endpoint and some other minor modifications.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user