table deleting

This commit is contained in:
2018-07-29 19:11:55 +02:00
parent 8ff10904ce
commit 3bf9b68503
9 changed files with 67 additions and 5 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ trait Reportable
{
public static function bootReportable()
{
static::deleting(function(Reportable $self) {
static::deleting(function($self) {
/** @var Reportable $self */
$self->reportsOf()->delete();
});
}