mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Merge branch 'journal' into timetable
# Conflicts: # app/Http/Controllers/Auth/LoginController.php # app/Http/Controllers/Auth/RegisterController.php # app/Http/Controllers/TimetableController.php # app/Models/SchoolClass.php # app/Models/User.php # composer.lock
This commit is contained in:
@@ -10,7 +10,7 @@ class Teacher extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'updated_at',
|
||||
];
|
||||
@@ -34,4 +34,7 @@ class Teacher extends Model
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function tasks(){
|
||||
return $this->hasMany(Task::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user