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

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

Override the boot method to bind model event listeners.
public static boot ( )
    public static function boot()
    {
        parent::boot();
        // When saving the model, if the URL has changed we need to test it
        static::saved(function (CheckUrl $model) {
            if (is_null($model->last_status)) {
                $model->dispatch(new RequestProjectCheckUrl([$model]));
            }
        });
    }