mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
myhr add translation
This commit is contained in:
@@ -21,6 +21,7 @@ class UserResource extends JsonResource
|
||||
'status' => $this->status,
|
||||
'enabled' => $this->enabled,
|
||||
'added' => format_datetime($this->added),
|
||||
'last_access' => format_datetime($this->last_access),
|
||||
'class' => $this->class,
|
||||
'class_text' => $this->class_text,
|
||||
'avatar' => $this->avatar,
|
||||
|
||||
@@ -135,12 +135,13 @@ class User extends Authenticatable
|
||||
*/
|
||||
protected $casts = [
|
||||
'added' => 'datetime',
|
||||
'last_access' => 'datetime',
|
||||
];
|
||||
|
||||
public static $commonFields = [
|
||||
'id', 'username', 'email', 'class', 'status', 'added', 'avatar',
|
||||
'uploaded', 'downloaded', 'seedbonus', 'seedtime', 'leechtime',
|
||||
'invited_by', 'enabled', 'seed_points',
|
||||
'invited_by', 'enabled', 'seed_points', 'last_access'
|
||||
];
|
||||
|
||||
public static function getDefaultUserAttributes(): array
|
||||
|
||||
@@ -7,8 +7,6 @@ use Illuminate\Support\Str;
|
||||
|
||||
class BaseRepository
|
||||
{
|
||||
private static $enctyper;
|
||||
|
||||
protected function getSortFieldAndType(array $params): array
|
||||
{
|
||||
$field = !empty($params['sort_field']) ? $params['sort_field'] : 'id';
|
||||
|
||||
Reference in New Issue
Block a user