Add order by on service account index

This commit is contained in:
Vincent BRIDIER 2022-09-21 15:32:20 +02:00
parent fecc96fa66
commit c5e9e4e378
No known key found for this signature in database
GPG key ID: 8571BFA20420D512

View file

@ -16,7 +16,7 @@ class ServiceAccountsController extends Controller
*/
public function index()
{
$service_accounts = ServiceAccount::all();
$service_accounts = ServiceAccount::all()->sortBy('name');
return view('service-accounts.index', compact('service_accounts'));
}