Files
riksdagen-app/app/Models/Votering.php

21 lines
414 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Votering extends Model
{
protected $table = 'votering';
public $timestamps = false;
public function dokument()
{
return $this->belongsTo(Dokument::class, 'hangar_id', 'hangar_id');
}
public function person()
{
return $this->belongsTo(Person::class, 'intressent_id', 'intressent_id');
}
}