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