Skip to content

Delete Record

Record deletion does not have a dedicated page but can be deleted from View Record and Edit Record page.

In view page a delete action button exists on page header section to delete the associated record. A confirmation dialog will be open on clicking the button.

After callback

To run some code after a record has been deleted, you can chain after method in controller and pass a closure to execute after record has been deleted.

public function destroy(Category $category, ViewCategory $page)
{
return $page
->delete($category)
->after(fn () => SendMailToAdmin::dispatch());
}