Добавлена сортировка по имени организации
This commit is contained in:
@@ -9,7 +9,7 @@ class OrgController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$orgs = Org::all(['id', 'name', 'code']);
|
||||
$orgs = Org::orderBy('name')->get(['id', 'name', 'code']);
|
||||
|
||||
return response()->json($orgs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user