feat: Add HasPageShield trait to CustomMedia and CustomCompany pages.
This commit is contained in:
parent
b88660b8c8
commit
cbd36d29e8
@ -5,6 +5,7 @@
|
|||||||
use App\Models\Company;
|
use App\Models\Company;
|
||||||
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;
|
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;
|
||||||
use BackedEnum;
|
use BackedEnum;
|
||||||
|
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
|
||||||
use Filament\Forms\Components\Textarea;
|
use Filament\Forms\Components\Textarea;
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
@ -18,6 +19,8 @@
|
|||||||
|
|
||||||
class CustomCompany extends Page
|
class CustomCompany extends Page
|
||||||
{
|
{
|
||||||
|
use HasPageShield;
|
||||||
|
|
||||||
protected string $view = 'filament.pages.company';
|
protected string $view = 'filament.pages.company';
|
||||||
|
|
||||||
protected static ?string $title = 'Perusahaan';
|
protected static ?string $title = 'Perusahaan';
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
use App\Models\PartnerMedia;
|
use App\Models\PartnerMedia;
|
||||||
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;
|
use Asmit\FilamentUpload\Forms\Components\AdvancedFileUpload;
|
||||||
use BackedEnum;
|
use BackedEnum;
|
||||||
|
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
|
||||||
use Filament\Forms\Components\Radio;
|
use Filament\Forms\Components\Radio;
|
||||||
use Filament\Forms\Components\Textarea;
|
use Filament\Forms\Components\Textarea;
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
@ -22,6 +23,8 @@
|
|||||||
|
|
||||||
class CustomMedia extends Page
|
class CustomMedia extends Page
|
||||||
{
|
{
|
||||||
|
use HasPageShield;
|
||||||
|
|
||||||
protected string $view = 'filament.pages.custom-media';
|
protected string $view = 'filament.pages.custom-media';
|
||||||
|
|
||||||
protected static ?string $title = 'Media';
|
protected static ?string $title = 'Media';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user