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