1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00

Правки после слияния

This commit is contained in:
ashen-1-dev
2020-12-17 00:27:04 +07:00
29 changed files with 1206 additions and 100 deletions

View File

@@ -10,7 +10,7 @@ class Teacher extends Model
{
use HasFactory;
protected $guarded = [
protected $fillable = [
'user_id',
'updated_at',
];
@@ -34,4 +34,9 @@ class Teacher extends Model
return $this->belongsTo(User::class);
}
public function tasks(){
return $this->hasMany(Task::class);
}
}