35 lines
636 B
PHP
35 lines
636 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Projekte extends Model
|
|
{
|
|
protected $fillable = [
|
|
'konto_id',
|
|
'auftraggeber_id',
|
|
'gutachter_id',
|
|
'offizieller_name',
|
|
'interner_name',
|
|
'beschreibung',
|
|
'erstellung',
|
|
'status',
|
|
];
|
|
|
|
public function auftraggeber()
|
|
{
|
|
return $this->belongsTo(Auftraggeber::class);
|
|
}
|
|
|
|
public function gutachter()
|
|
{
|
|
return $this->belongsTo(Gutachter::class);
|
|
}
|
|
|
|
public function allgemeinflaechens()
|
|
{
|
|
return $this->hasMany(Allgemeinflaechen::class);
|
|
}
|
|
}
|