I would like to stop displaying by date and descending and make it display randomly or as I know it - random.
Below is the excerpt that I have to modify from the php file:
public function getNewReleases() {
return Album::with('artist', 'tracks')
->join('artists', 'artists.id', '=', 'albums.artist_id')
->orderBy('release_date', 'desc')
->limit(40)
->select('albums.*')
->get();
}
}