Add new models and page for motions
This commit is contained in:
20
app/Models/Debatt.php
Normal file
20
app/Models/Debatt.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Debatt extends Model
|
||||
{
|
||||
protected $table = 'debatt';
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user