REBELinBLUE\Deployer\Notification::boot PHP Метод

boot() публичный статический Метод

Override the boot method to bind model event listeners.
public static boot ( )
    public static function boot()
    {
        parent::boot();
        // When the notification has been saved queue a test
        static::saved(function (Notification $model) {
            $model->dispatch(new SlackNotify($model, $model->testPayload()));
        });
    }