Add new models and page for motions
This commit is contained in:
31
app/Models/DokReferens.php
Normal file
31
app/Models/DokReferens.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DokReferens extends Model
|
||||
{
|
||||
protected $table = 'dokreferens';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'hangar_id',
|
||||
'referenstyp',
|
||||
'ref_dok_id',
|
||||
'uppgift',
|
||||
'ref_dok_typ',
|
||||
'ref_dok_rm',
|
||||
'ref_dok_bet',
|
||||
'ref_dok_titel',
|
||||
'ref_dok_subtitel',
|
||||
'ref_dok_subtyp',
|
||||
'ref_dok_dokumentnamn',
|
||||
];
|
||||
|
||||
public function dokument()
|
||||
{
|
||||
return $this->belongsTo(Dokument::class, 'hangar_id', 'hangar_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user