Add new models and page for motions
This commit is contained in:
34
app/Models/DokForslag.php
Normal file
34
app/Models/DokForslag.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DokForslag extends Model
|
||||
{
|
||||
protected $table = 'dokforslag';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'hangar_id',
|
||||
'nummer',
|
||||
'beteckning',
|
||||
'lydelse',
|
||||
'lydelse2',
|
||||
'utskottet',
|
||||
'kammaren',
|
||||
'behandlas_i',
|
||||
'behandlas_i_punkt',
|
||||
'kammarbeslutstyp',
|
||||
'intressent',
|
||||
'avsnitt',
|
||||
'grundforfattning',
|
||||
'andringsforfattning',
|
||||
];
|
||||
|
||||
public function dokument()
|
||||
{
|
||||
return $this->belongsTo(Dokument::class, 'hangar_id', 'hangar_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user