<?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Foundation\Auth\User as Authenticatable;
/**
* Class Admin
*
* @property int $id
* @property string|null $username
* @property string|null $password
* @property string|null $name
* @property string|null $phone
* @property string|null $email
* @property string|null $rights
* @property string|null $language
* @property string|null $theme
* @property Carbon|null $last_visit_date
* @property int $inactive
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @package App\Models
*/
class Admin extends Authenticatable
{
protected $table = 'admins';
protected $casts = [
'inactive' => 'int'
];
protected $dates = [
'last_visit_date'
];
protected $hidden = [
'password'
];
protected $fillable = [
'username',
'password',
'name',
'phone',
'email',
'rights',
'language',
'theme',
'last_visit_date',
'inactive'
];
}