Additional functionality to Extension Interface
The Extension interface in Extension.php now includes two new methods - canDelete and canDeleteResponse. This provides more capability control over Extensions.
Prevention of Deletion for Linked Forms
In Form.php, we've added new logic in the deleting event of the Form model. This logic will prevent the deletion of a form that is linked to an extension, which ensures data integrity and avoids accidental losses.
Updating getTable Method's Return Type
The getTable method in Form.php now returns a string type, streamlining its output for usage in other functions of the application.
Extension Integration with Notifications
We've integrated the Filament\Notifications\Notification into the file Form.php and Response.php, potentially allowing extensions to leverage these notifications for better user interaction.
Further Checks on Response Model Deletion
Prevention logic has been added to the deleting event of the Response model in Response.php to avert accidental removal of a form tied to an extension. This double-checks the deletion process, offering an additional layer of safety for data.
PR Summary
Additional functionality to Extension Interface The
Extension
interface inExtension.php
now includes two new methods -canDelete
andcanDeleteResponse
. This provides more capability control over Extensions.Prevention of Deletion for Linked Forms In
Form.php
, we've added new logic in thedeleting
event of theForm
model. This logic will prevent the deletion of a form that is linked to an extension, which ensures data integrity and avoids accidental losses.Updating
getTable
Method's Return Type ThegetTable
method inForm.php
now returns astring
type, streamlining its output for usage in other functions of the application.Extension Integration with Notifications We've integrated the
Filament\Notifications\Notification
into the fileForm.php
andResponse.php
, potentially allowing extensions to leverage these notifications for better user interaction.Further Checks on Response Model Deletion Prevention logic has been added to the
deleting
event of theResponse
model inResponse.php
to avert accidental removal of a form tied to an extension. This double-checks the deletion process, offering an additional layer of safety for data.