custom update
Hello, inside the handleRecordUpdate method of an Editrecord I have an update method for my repository that returns whether the update was successful or not. Then I would like to know how I do it so that when my response from the repository gives an error, it shows a notification and remains on the Update page and when it works, it goes to the listing page with a success notification. Thanks
2 Replies
I think you're looking for the
->halt()
method, have a look in this section of the docs :
https://filamentphp.com/docs/2.x/admin/resources/editing-records#halting-the-saving-processThank you it worked out great.