Lae/app/Models/Admin.php

48 lines
1.3 KiB
PHP
Raw Normal View History

2022-11-14 10:37:09 +00:00
<?php
namespace App\Models;
2022-12-27 16:25:22 +00:00
use Eloquent;
2022-11-21 07:28:50 +00:00
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
2022-12-27 16:25:22 +00:00
use Illuminate\Database\Eloquent\Builder;
2022-11-14 10:37:09 +00:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
2022-12-27 16:25:22 +00:00
use Illuminate\Support\Carbon;
2022-11-14 10:37:09 +00:00
2022-11-20 03:40:20 +00:00
/**
* App\Models\Admin
*
2022-11-20 12:32:49 +00:00
* @property int $id
* @property string $email
* @property string $password
* @property string|null $remember_token
2022-12-27 16:25:22 +00:00
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @method static Builder|Admin newModelQuery()
* @method static Builder|Admin newQuery()
* @method static Builder|Admin query()
* @method static Builder|Admin whereCreatedAt($value)
* @method static Builder|Admin whereEmail($value)
* @method static Builder|Admin whereId($value)
* @method static Builder|Admin wherePassword($value)
* @method static Builder|Admin whereRememberToken($value)
* @method static Builder|Admin whereUpdatedAt($value)
* @mixin Eloquent
2022-11-20 03:40:20 +00:00
*/
2022-11-14 10:37:09 +00:00
class Admin extends Authenticatable
{
2022-11-21 07:28:50 +00:00
use HasFactory, Cachable;
2022-11-14 10:37:09 +00:00
protected $table = 'admins';
protected $fillable = [
'email',
'password',
];
protected $hidden = [
'password',
'remember_token',
];
}