Skip to content

Commit

Permalink
Configure Jetstream classes in providers and separate panels into Adm…
Browse files Browse the repository at this point in the history
…in and App
  • Loading branch information
curtisdelicata committed Jun 29, 2024
1 parent e135333 commit 6e3c1ba
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions config/filament-shield.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?php

return [
'shield_resource' => [
'should_register_navigation' => true,
'slug' => 'shield/roles',
'navigation_sort' => -1,
'navigation_badge' => true,
'navigation_group' => true,
'is_globally_searchable' => false,
'show_model_path' => true,
'is_scoped_to_tenant' => true,
'cluster' => null,
],

'auth_provider_model' => [
'fqcn' => 'App\\Models\\User',
],

'super_admin' => [
'enabled' => true,
'name' => 'super_admin',
'define_via_gate' => false,
'intercept_gate' => 'before', // after
],

'panel_user' => [
'enabled' => true,
'name' => 'panel_user',
],

'permission_prefixes' => [
'resource' => [
'view',
'view_any',
'create',
'update',
'restore',
'restore_any',
'replicate',
'reorder',
'delete',
'delete_any',
'force_delete',
'force_delete_any',
],

'page' => 'page',
'widget' => 'widget',
],

'entities' => [
'pages' => true,
'widgets' => true,
'resources' => true,
'custom_permissions' => false,
],

'generator' => [
'option' => 'policies_and_permissions',
'policy_directory' => 'Policies',
'policy_namespace' => 'Policies',
],

'exclude' => [
'enabled' => true,

'pages' => [
'Dashboard',
],

'widgets' => [
'AccountWidget', 'FilamentInfoWidget',
],

'resources' => [],
],

'discovery' => [
'discover_all_resources' => false,
'discover_all_widgets' => false,
'discover_all_pages' => false,
],

'register_role_policy' => [
'enabled' => false,
],

];

0 comments on commit 6e3c1ba

Please sign in to comment.