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