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

index метод

This commit is contained in:
nikden13
2020-12-09 13:42:28 +07:00
parent 3c93886fef
commit 1765cf44d0
3 changed files with 29 additions and 3 deletions

View File

@@ -13,6 +13,11 @@ class Subject extends Model
'name',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function banktasks()
{
return $this->hasMany(BankTask::class);

View File

@@ -13,6 +13,11 @@ class Timetable extends Model
'updated_at',
];
protected $hidden = [
'created_at',
'updated_at',
];
public function teacher()
{
return $this->belongsTo(Teacher::class);