florida_gym/app/Models/Receptionist.php
2026-03-11 11:03:12 +05:30

53 lines
919 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class Receptionist extends Authenticatable
{
use HasFactory, Notifiable;
/**
* Check if the user is a receptionist.
*/
public function isReceptionist(): bool
{
return true;
}
/**
* Check if the user is an owner.
*/
public function isOwner(): bool
{
return false;
}
protected $fillable = [
'name',
'email',
'password',
'branch_id',
];
protected $hidden = [
'password',
'remember_token',
];
protected function casts(): array
{
return [
'password' => 'hashed',
];
}
public function branch()
{
return $this->belongsTo(Branch::class);
}
}