adrema/app/User/UserSettings.php

29 lines
481 B
PHP
Raw Normal View History

2024-08-01 18:25:25 +02:00
<?php
namespace App\User;
use App\Http\Resources\UserResource;
use App\Setting\LocalSettings;
use App\User;
class UserSettings extends LocalSettings
{
public static function group(): string
{
return 'user';
}
public static function title(): string
{
return 'Benutzer';
}
/**
* @inheritdoc
*/
public function data()
{
2024-08-02 15:12:47 +02:00
return UserResource::collection(User::orderByRaw('lastname, firstname')->get());
2024-08-01 18:25:25 +02:00
}
}