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