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
@@ -14,6 +14,15 @@ class ProjektMethode extends Model
'flaeche',
];
public static function boot()
{
parent::boot();
self::updated(function ($model) {
Projekte::where('id', $model['projekte_id'])->update(['evaluation_gutachten' => false]);
});
}
public function methode()
{
return $this->hasOne(Methode::class, 'id', 'methode_id');