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