47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Eloquent;
|
|
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
|
|
use Illuminate\Database\Eloquent\Builder;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* App\Models\Admin
|
|
*
|
|
* @property int $id
|
|
* @property string $email
|
|
* @property string $password
|
|
* @property string|null $remember_token
|
|
* @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
|
|
*/
|
|
class Admin extends Authenticatable
|
|
{
|
|
use Cachable;
|
|
|
|
protected $table = 'admins';
|
|
|
|
protected $fillable = [
|
|
'email',
|
|
'password',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
'remember_token',
|
|
];
|
|
}
|