32 lines
619 B
PHP
32 lines
619 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class TrainingMatrix extends Model
|
||
|
|
{
|
||
|
|
protected $table = 'training_matrices';
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'department_id',
|
||
|
|
'position_id',
|
||
|
|
'sop_id'
|
||
|
|
];
|
||
|
|
|
||
|
|
public function department(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Department::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function position(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Position::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function sop(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Sop::class);
|
||
|
|
}
|
||
|
|
}
|