Sort Album Collection Random

Running music website. Want albums returned in random order. See attachment for code. Will not provide access to server but you can ask for any other files needed. Most methods i've tried result in 'error 500' .


<?php namespace App\Services\Providers\Local;

use App\Album;

use Illuminate\Database\Eloquent\Collection;

class LocalNewReleases {


* Get new album releases using local provider.


* @return Collection


public function getNewReleases() {

return Album::with('artist', 'tracks')

->join('artists', '[url removed, login to view]', '=', 'albums.artist_id')

->orderBy('release_date', 'desc')






Taidot: Laravel, MySQL, PHP

Näytä lisää: google photos sort by filename, google photos sort by name, organizing google photo albums, google photos sort albums by name, google photos sort by date taken, google photos sort album by date, google photos organize albums, sort google photo albums alphabetically, album art designer wanted for local band, local business categories database, synchronize local remote mysql database, web site mp3 player album art random xml, magento product collection random, jboss mdb bound local local home interfaces, bound local local home interfaces, running mysql php application local kiosk, bound doesnt local local home interfaces jboss messagedriven, romania local jobs resume database employer, net website slow running local, message driven bound doesnt local local home interfaces

Tietoa työnantajasta:
( 21 arvostelua ) East Wenatchee, United States

Projektin tunnus: #15110272

Myönnetty käyttäjälle:


Please try this "orderByRaw('ORDER BY rand()')" instead of "orderBy('release_date', 'desc')". Relevant Skills and Experience PHP, Laravel, Eloquent ORM Proposed Milestones $15 USD - After successful

$15 USD 1 päivässä
(3 Arvostelua)

11 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hello! With 98% to 99% completion rate, 1000+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page !!)... Lisää

$35 USD 1 päivässä
(834 arvostelua)

Great experience in PHP,Laravel,MySQL,DB. You can see these in my profile and reviews. I will complete your requirement for making the new releases in random order rather order by in less than 5 minutes. Waiting for Lisää

$25 USD 1 päivässä
(121 arvostelua)

I am ready to start your project from now. will work till it completed Relevant Skills and Experience Laravel framework, php, wordpress, ajax, javascript, bootstrap css and html5. I also have expertise on Responsive d Lisää

$35 USD 1 päivässä
(94 arvostelua)

I have gone through from your description and can do this work comfortably. I have 6+ years experience in development and i have done lot's of project in my development career. Relevant Skills and Experience PHP, Node Lisää

$30 USD 10 päivässä
(53 arvostelua)

Hello Sir, I've reviewed your requirement and I'm ready to work with you. I will provide quality work as well full support for any query. I'm giving you trust for good quality work. Relevant Skills and Experience I h Lisää

$35 USD 0 päivässä
(125 arvostelua)

HI! i can fix your music website random query just message me i will start your work immediately and complete it as soon as possible thank you ! Relevant Skills and Experience I have 7+ years experience in web develo Lisää

$20 USD 1 päivässä
(78 arvostelua)
$110 USD 10 päivässä
(15 arvostelua)
$20 USD 10 päivässä
(7 arvostelua)

Hi, We have gone through your requirement and can fix this 500 error very easily this is a server side error so we need to play with source code. please share link to your your website. Relevant Skills and Experience Lisää

$21 USD 1 päivässä
(5 arvostelua)

Greetings! I can solve your issue. Relevant Skills and Experience I'm professional laravel developer with more than 4 years of experience. If you apply me, I can finish your job with no bugs and high quality. Propose Lisää

$30 USD 10 päivässä
(1 arvostelu)