Properties

$id

$id : integer

Type

integer

$name

$name : string

Type

string

$guard_name

$guard_name : string

Type

string

$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

$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

$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

$users

$users : \Illuminate\Database\Eloquent\Collection|array<mixed,\App\Models\User>

Type

\Illuminate\Database\Eloquent\Collection|array<mixed,\App\Models\User>

$users_count

$users_count : integer|null

Type

integer|null

$logName

$logName : 

Type

$logUnguarded

$logUnguarded : 

Type

Methods

getList()

getList(array  $validated) : array

获取列表

Parameters

array $validated

Returns

array

getAllRoles()

getAllRoles(array  $validated) : array

获取全部角色

Parameters

array $validated

Returns

array

newModelQuery()

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

Returns

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

newQuery()

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

Returns

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

permission()

permission(mixed  $permissions) : \Illuminate\Database\Eloquent\Builder|\Spatie\Permission\Models\Role

Parameters

mixed $permissions

Returns

\Illuminate\Database\Eloquent\Builder|\Spatie\Permission\Models\Role

query()

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

Returns

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

whereCreatedAt()

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

Parameters

mixed $value

Returns

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

whereGuardName()

whereGuardName(mixed  $value) : \Illuminate\Database\Eloquent\Builder|\App\Models\Role

Parameters

mixed $value

Returns

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

whereId()

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

Parameters

mixed $value

Returns

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

whereName()

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

Parameters

mixed $value

Returns

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

whereUpdatedAt()

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

Parameters

mixed $value

Returns

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