How to reload a Edit page

i have 2 panels and in admin panel i have student resource which is also present in app panel and i have a status field in the student resource table ok when the status is false the app panel user should not edit that record ,ex- in admin panel admin change the status of a record to false and the app panel user is already in the edit page of that record so then if he edit that record then the false status changed to true so how can i acheive that like when admin change the status and app panel user present inside the edit page of that record he should n't edit that record
Solution:
I would use the beforeSave() method of the EditStudent page. This will check any conditions you want before actually saving the record. https://filamentphp.com/docs/3.x/panels/resources/editing-records#halting-the-saving-process...
Jump to solution
1 Reply
Solution
tuto1902
tuto190214mo ago
I would use the beforeSave() method of the EditStudent page. This will check any conditions you want before actually saving the record. https://filamentphp.com/docs/3.x/panels/resources/editing-records#halting-the-saving-process
Want results from more Discord servers?
Add your server