feat: Add HasPageShield trait to CustomMedia and CustomCompany pages.

This commit is contained in:
Yoga Pangestu 2025-12-16 14:13:24 +07:00
parent b88660b8c8
commit cbd36d29e8
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@
use App\Models\Company;
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;
use BackedEnum;
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
@ -18,6 +19,8 @@
class CustomCompany extends Page
{
use HasPageShield;
protected string $view = 'filament.pages.company';
protected static ?string $title = 'Perusahaan';

View File

@ -8,6 +8,7 @@
use App\Models\PartnerMedia;
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;
use BackedEnum;
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
@ -22,6 +23,8 @@
class CustomMedia extends Page
{
use HasPageShield;
protected string $view = 'filament.pages.custom-media';
protected static ?string $title = 'Media';