Flarum\Core\Group::boot PHP Method

boot() public static method

Boot the model.
public static boot ( ) : void
return void
    public static function boot()
    {
        parent::boot();
        static::deleted(function (Group $group) {
            $group->raise(new GroupWasDeleted($group));
            $group->permissions()->delete();
        });
    }