Paltzhalter
This commit is contained in:
1 parent
44da4addcd
commit
d1ce891d9c
10 files changed
+205
-47
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ProjektPlatzhalter extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'projekte_id',
|
||||
'platzhalter',
|
||||
'platzhaltertext',
|
||||
'controll',
|
||||
];
|
||||
}
|
||||
@@ -53,6 +53,11 @@ class Projekte extends Model
|
||||
return $this->belongsTo(Auftraggeber::class);
|
||||
}
|
||||
|
||||
public function projekt_platzhalters()
|
||||
{
|
||||
return $this->hasMany(ProjektPlatzhalter::class);
|
||||
}
|
||||
|
||||
public function gutachter()
|
||||
{
|
||||
return $this->belongsTo(Gutachter::class);
|
||||
|
||||
Reference in new issue
Block a user