mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Модуль Задания(fix some bugs)
This commit is contained in:
@@ -22,4 +22,12 @@ class Task extends Model
|
||||
$this->belongsTo(SchoolClass::class);
|
||||
}
|
||||
|
||||
public function tasks() {
|
||||
$this->hasMany(Task::class);
|
||||
}
|
||||
|
||||
public function answers() {
|
||||
$this->hasMany(AnswerToTask::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@ class TaskFile extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'task_files';
|
||||
protected $fillable = ['name', 'type', 'extension', 'url', 'task_id', 'user_id'];
|
||||
protected $fillable = ['name', 'type', 'extension', 'url', 'task_id', 'user_id', 'review'];
|
||||
protected $hidden = ['review'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user