Add new models and page for motions
This commit is contained in:
16
app/Models/Roll.php
Normal file
16
app/Models/Roll.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Roll extends Model
|
||||
{
|
||||
protected $table = 'roll';
|
||||
protected $primaryKey = 'pk';
|
||||
public $timestamps = false;
|
||||
|
||||
public function personUppdrag()
|
||||
{
|
||||
return $this->hasMany(PersonUppdrag::class, 'roll_kod', 'kod');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user