Skip to content

Commit

Permalink
Implement getTabs() method to AutoResource
Browse files Browse the repository at this point in the history
  • Loading branch information
miguilimzero committed Sep 26, 2023
1 parent d6e50cc commit f8ace5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/AutoResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public static function getActions(): array
return [];
}

public static function getTabs(): array
{
return [];
}

public static function getHeaderWidgets(): array
{
return [
Expand Down
7 changes: 7 additions & 0 deletions src/Filament/Pages/FilamentAutoResourceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

class FilamentAutoResourceList extends ListRecords
{
public function getTabs(): array
{
return [
...static::getResource()::getTabs()
];
}

protected function getHeaderWidgets(): array
{
return [
Expand Down

0 comments on commit f8ace5c

Please sign in to comment.