21 lines
420 B
PHP
21 lines
420 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Anforande extends Model
|
|
{
|
|
protected $table = 'anforande';
|
|
public $timestamps = false;
|
|
|
|
public function dokument()
|
|
{
|
|
return $this->belongsTo(Dokument::class, 'dok_hangar_id', 'hangar_id');
|
|
}
|
|
|
|
public function person()
|
|
{
|
|
return $this->belongsTo(Person::class, 'intressent_id', 'intressent_id');
|
|
}
|
|
}
|