finished the upgrade to filament 4. completely revamped the frontend with codex, now it looks great!
This commit is contained in:
24
app/Filament/Resources/Styles/Pages/EditStyle.php
Normal file
24
app/Filament/Resources/Styles/Pages/EditStyle.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\StyleResource\Pages;
|
||||
|
||||
use App\Filament\Resources\StyleResource;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditStyle extends EditRecord
|
||||
{
|
||||
protected static string $resource = StyleResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\DeleteAction::make(),
|
||||
];
|
||||
}
|
||||
|
||||
protected function getRedirectUrl(): string
|
||||
{
|
||||
return $this->getResource()::getUrl('index');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user