action evaluation
This commit is contained in:
1 parent
d473bdc2b3
commit
9eb19cf8fd
13 files changed
+297
-132
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user