<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Laravel\Sanctum\HasApiTokens;

class Clientsreg extends Model
{
    use HasApiTokens, HasFactory;



    protected $fillable = [
        'firstname',
        'lastname',
        'phone',
        'otp',
        'email',
        'fcm_token',
        'device_type',
        'active',
        'code_sent_at',
        'code_expires_at',
        'password',
    ];

    protected $casts = [
        'active' => 'boolean',
        'code_sent_at' => 'datetime',
        'code_expires_at' => 'datetime',
    ];

    protected $hidden = [
        'password',
    ];
}
