Add new models and page for motions
This commit is contained in:
30
app/Models/DokUppgift.php
Normal file
30
app/Models/DokUppgift.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DokUppgift extends Model
|
||||
{
|
||||
protected $table = 'dokuppgift';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'hangar_id',
|
||||
'kod',
|
||||
'namn',
|
||||
'text',
|
||||
'dok_id',
|
||||
'systemdatum',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'systemdatum' => 'datetime',
|
||||
];
|
||||
|
||||
public function dokument()
|
||||
{
|
||||
return $this->belongsTo(Dokument::class, 'hangar_id', 'hangar_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user