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

+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.
*/