action evaluation

This commit is contained in:
salam committed 2025-10-20 16:57:50 +02:00
1 parent d473bdc2b3
commit 9eb19cf8fd
13 files changed
+297 -132

No files matched your search

+9
View File
@@ -24,6 +24,15 @@ class OrientierungZuAbschlaege extends Model
'j',
];
public static function boot()
{
parent::boot();
self::updated(function ($model) {
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
});
}
public function orientierung()
{
return $this->hasOne(Orientierung::class, 'id', 'orientierung_id');