Properties

$id

$id : integer

Type

integer

$name

$name : string

Type

string

$email

$email : string

Type

string

$email_verified_at

$email_verified_at : \Illuminate\Support\Carbon|null

Type

\Illuminate\Support\Carbon|null

$password

$password : string

Type

string

$remember_token

$remember_token : string|null

Type

string|null

$created_at

$created_at : \Illuminate\Support\Carbon|null

Type

\Illuminate\Support\Carbon|null

$updated_at

$updated_at : \Illuminate\Support\Carbon|null

Type

\Illuminate\Support\Carbon|null

$status

$status : integer

状态 1:正常 2:禁止

Type

integer

$activities

$activities : \Illuminate\Database\Eloquent\Collection|array<mixed,\Spatie\Activitylog\Models\Activity>

Type

\Illuminate\Database\Eloquent\Collection|array<mixed,\Spatie\Activitylog\Models\Activity>

$activities_count

$activities_count : integer|null

Type

integer|null

$notifications

$notifications : \Illuminate\Notifications\DatabaseNotificationCollection|array<mixed,\Illuminate\Notifications\DatabaseNotification>

Type

\Illuminate\Notifications\DatabaseNotificationCollection|array<mixed,\Illuminate\Notifications\DatabaseNotification>

$notifications_count

$notifications_count : integer|null

Type

integer|null

$permissions

$permissions : \Illuminate\Database\Eloquent\Collection|array<mixed,\Spatie\Permission\Models\Permission>

Type

\Illuminate\Database\Eloquent\Collection|array<mixed,\Spatie\Permission\Models\Permission>

$permissions_count

$permissions_count : integer|null

Type

integer|null

$roles

$roles : \Illuminate\Database\Eloquent\Collection|array<mixed,\Spatie\Permission\Models\Role>

Type

\Illuminate\Database\Eloquent\Collection|array<mixed,\Spatie\Permission\Models\Role>

$roles_count

$roles_count : integer|null

Type

integer|null

$logName

$logName : 

Type

$logFillable

$logFillable : 

Type

$logUnguarded

$logUnguarded : 

Type

$fillable

$fillable : array

The attributes that are mass assignable.

Type

array

$hidden

$hidden : array

The attributes that should be hidden for arrays.

Type

array

$casts

$casts : array

The attributes that should be cast to native types.

Type

array

Methods

getJWTIdentifier()

getJWTIdentifier() : mixed

Get the identifier that will be stored in the subject claim of the JWT.

Returns

mixed

getJWTCustomClaims()

getJWTCustomClaims() : array

Return a key value array, containing any custom claims to be added to the JWT.

Returns

array

getList()

getList(array  $validated) : array

获取列表

Parameters

array $validated

Returns

array

create()

create(array  $attributes) : \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model

创建

Parameters

array $attributes

Returns

\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model

updateSave()

updateSave(array  $data) : array

更新

Parameters

array $data

Returns

array

newModelQuery()

newModelQuery() : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

newQuery()

newQuery() : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

permission()

permission(mixed  $permissions) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $permissions

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

query()

query() : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

role()

role(mixed  $roles, mixed  $guard = null) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $roles
mixed $guard

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereCreatedAt()

whereCreatedAt(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereEmail()

whereEmail(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereEmailVerifiedAt()

whereEmailVerifiedAt(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereId()

whereId(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereName()

whereName(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

wherePassword()

wherePassword(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereRememberToken()

whereRememberToken(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereUpdatedAt()

whereUpdatedAt(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin

whereStatus()

whereStatus(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Admin

Parameters

mixed $value

Returns

\Illuminate\Database\Eloquent\Builder|\App\Models\Admin