CourseWork/app/Models/Score.php

18 lines
341 B
PHP
Raw Normal View History

2024-05-07 17:15:58 +04:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
2024-05-08 11:39:35 +04:00
use Illuminate\Database\Eloquent\Relations\BelongsTo;
2024-05-07 17:15:58 +04:00
use Illuminate\Database\Eloquent\Relations\Pivot;
class Score extends Pivot
{
use HasFactory;
2024-05-08 11:39:35 +04:00
public function lesson(): BelongsTo
{
return $this->belongsTo(Lesson::class);
}
2024-05-07 17:15:58 +04:00
}