mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
# 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
26 lines
398 B
PHP
26 lines
398 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class HeadTeacher extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'user_id',
|
|
'updated_at',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'user_id',
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|