mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
[2.x] [Filament] Update deprecated getFormSchema
method to use form()
override (#354)
This commit is contained in:
@ -55,10 +55,12 @@ protected function getTableColumns(): array
|
||||
];
|
||||
}
|
||||
|
||||
public function getTable(): Table
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $this->table
|
||||
->heading('')
|
||||
return $table
|
||||
->heading(null)
|
||||
->query($this->getTableQuery())
|
||||
->columns($this->getTableColumns())
|
||||
->actions([
|
||||
Action::make('logs')
|
||||
->hiddenLabel()
|
||||
|
@ -46,10 +46,12 @@ protected function getTableColumns(): array
|
||||
];
|
||||
}
|
||||
|
||||
public function getTable(): Table
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $this->table
|
||||
->heading('')
|
||||
return $table
|
||||
->heading(null)
|
||||
->query($this->getTableQuery())
|
||||
->columns($this->getTableColumns())
|
||||
->recordUrl(fn (Script $record) => Executions::getUrl(['script' => $record]))
|
||||
->actions([
|
||||
EditAction::make('edit')
|
||||
|
Reference in New Issue
Block a user