ProjektMethodesRelationManager
This commit is contained in:
1 parent
77f8b3c047
commit
9a7e6fa248
11 files changed
+209
-29
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ProjektMethode extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'projekte_id',
|
||||
'methode_id',
|
||||
'geschoss',
|
||||
'raumart',
|
||||
'flaeche',
|
||||
];
|
||||
|
||||
public function methodes()
|
||||
{
|
||||
return $this->hasMany(Methode::class);
|
||||
}
|
||||
}
|
||||
@@ -36,4 +36,9 @@ class Projekte extends Model
|
||||
{
|
||||
return $this->hasMany(Raeumealle::class);
|
||||
}
|
||||
|
||||
public function projekt_methodes()
|
||||
{
|
||||
return $this->hasMany(ProjektMethode::class);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user