belongsTo(Project::class); } public function getDateAttribute():Carbon { return Carbon::parse(explode('.',$this->name)[0]); } protected static function booted(): void { parent::booted(); self::updated(function (ProjectDownload $projectDownload) { event(new ProjectDownloadStatus($projectDownload)); }); } }