This fixed it:
public function getLocations()
{
return \Location::all(['locationId', 'name'])->sortBy('name')->values();
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community