Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Shield on Relation pages (ManageRelatedRecords) #450

Open
agusesetiyono opened this issue Nov 21, 2024 · 1 comment
Open

Implement Shield on Relation pages (ManageRelatedRecords) #450

agusesetiyono opened this issue Nov 21, 2024 · 1 comment
Assignees

Comments

@agusesetiyono
Copy link

Hi,

I have relation page using ManageRelatedRecords. Below is the code example:

<?php 
namespace App\Filament\Resources\TripResource\Pages;

use BezhanSalleh\FilamentShield\Traits\HasPageShield;

class ManageTripPayments extends ManageRelatedRecords
{

    use HasPageShield;

    public function form(Form $form): Form
    {
        ... 
    }
}

Filament has documentation here https://filamentphp.com/docs/3.x/panels/resources/relation-managers#relation-pages. I've tried implement HasPageShield like above but not work. Do you have any solution for this case?

@bezhanSalleh
Copy link
Owner

bezhanSalleh commented Nov 21, 2024

Shield doesn't support relation managers atm and the HasPageShield trait isn't going to work becuase it's for filament pages. It's on the roadmap though i don't really have the time to implement it for the time being, although you are welcome to PR it if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants