Add new models and page for motions

This commit is contained in:
2025-12-27 16:51:57 +01:00
parent 3ef975ad39
commit 45fe15eef2
36 changed files with 3753 additions and 355 deletions

28
app/Models/DokBilaga.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DokBilaga extends Model
{
protected $table = 'dokbilaga';
public $timestamps = false;
protected $fillable = [
'hangar_id',
'dok_id',
'filnamn',
'titel',
'subtitel',
'filstorlek',
'filtyp',
'fil_url',
];
public function dokument()
{
return $this->belongsTo(Dokument::class, 'hangar_id', 'hangar_id');
}
}