add some permession
This commit is contained in:
@@ -32,6 +32,13 @@ class Permission extends Resource
|
||||
'id', 'name',
|
||||
];
|
||||
|
||||
/**
|
||||
* Indicates if the resource should be displayed in the sidebar.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public static $displayInNavigation = false;
|
||||
|
||||
/**
|
||||
* Get the fields displayed by the resource.
|
||||
*/
|
||||
|
||||
@@ -48,6 +48,19 @@ class Role extends Resource
|
||||
return __('Role');
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an "index" query for the given resource.
|
||||
*
|
||||
* @param \Illuminate\Database\Eloquent\Builder $query
|
||||
* @return \Illuminate\Database\Eloquent\Builder
|
||||
*/
|
||||
public static function indexQuery(NovaRequest $request, $query)
|
||||
{
|
||||
$query->where('name', '!=', 'king');
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the fields displayed by the resource.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user