add some permession

This commit is contained in:
nurmuhammet committed 2023-11-29 23:56:04 +05:00
1 parent f073020e86
commit c3ef45134c
8 files changed
+123 -23

No files matched your search

@@ -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.
*/
+13
View File
@@ -48,6 +48,19 @@ public static function singularLabel(): string
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.
*/