academico-sis /
academico
| 1 | <?php |
||
| 2 | |||
| 3 | namespace App\Models\Skills; |
||
| 4 | |||
| 5 | use App\Models\Enrollment; |
||
| 6 | use Backpack\CRUD\app\Models\Traits\CrudTrait; |
||
| 7 | use Illuminate\Database\Eloquent\Model; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @mixin IdeHelperSkillEvaluation |
||
| 11 | */ |
||
| 12 | class SkillEvaluation extends Model |
||
| 13 | { |
||
| 14 | protected $guarded = ['id']; |
||
| 15 | |||
| 16 | protected $with = ['skill', 'skill_scale']; |
||
| 17 | |||
| 18 | use CrudTrait; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 19 | |||
| 20 | public function skill() |
||
| 21 | { |
||
| 22 | return $this->belongsTo(Skill::class); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function enrollment() |
||
| 26 | { |
||
| 27 | return $this->belongsTo(Enrollment::class); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function skill_scale() |
||
| 31 | { |
||
| 32 | return $this->belongsTo(SkillScale::class); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |