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()));
        });
    }