Skip to content

Commit

Permalink
Adding Config Based Guard Name Grouping For RoleResource Table
Browse files Browse the repository at this point in the history
  • Loading branch information
krishzzi committed Nov 4, 2024
1 parent a71ca76 commit d263a27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/filament-shield.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
'show_model_path' => true,
'is_scoped_to_tenant' => true,
'cluster' => null,
'table_group_by_guard_name' => true,
],

'auth_provider_model' => [
Expand Down
1 change: 1 addition & 0 deletions src/Resources/RoleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public static function form(Form $form): Form
public static function table(Table $table): Table
{
return $table
->defaultGroup(config('filament-shield.shield_resource.table_group_by_guard_name') ? 'guard_name' : null)
->columns([
Tables\Columns\TextColumn::make('name')
->badge()
Expand Down

0 comments on commit d263a27

Please sign in to comment.