Add new models and page for motions
This commit is contained in:
24
app/Models/PersonUppgift.php
Normal file
24
app/Models/PersonUppgift.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PersonUppgift extends Model
|
||||
{
|
||||
protected $table = 'personuppgift';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'intressent_id',
|
||||
'uppgift_kod',
|
||||
'uppgift',
|
||||
'uppgift_typ',
|
||||
];
|
||||
|
||||
public function person()
|
||||
{
|
||||
return $this->belongsTo(Person::class, 'intressent_id', 'intressent_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user