mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
[2.x] [Filament] Update deprecated getFormSchema
method to use form()
override (#354)
This commit is contained in:
@ -23,8 +23,6 @@ class LogsList extends Widget
|
||||
|
||||
public ?Site $site = null;
|
||||
|
||||
public ?string $label = '';
|
||||
|
||||
public bool $remote = false;
|
||||
|
||||
protected $listeners = ['$refresh'];
|
||||
@ -63,9 +61,12 @@ protected function applyDefaultSortingToTableQuery(Builder $query): Builder
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getTable(): Table
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $this->table
|
||||
return $table
|
||||
->heading(null)
|
||||
->query($this->getTableQuery())
|
||||
->columns($this->getTableColumns())
|
||||
->filters([
|
||||
Filter::make('created_at')
|
||||
->form([
|
||||
@ -84,7 +85,6 @@ public function getTable(): Table
|
||||
);
|
||||
}),
|
||||
])
|
||||
->heading($this->label)
|
||||
->actions([
|
||||
Action::make('view')
|
||||
->hiddenLabel()
|
||||
|
Reference in New Issue
Block a user