54 lines
975 B
PHP
54 lines
975 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
//use Illuminate\Foundation\Auth\Admin as Authenticate;
|
|
//use Illuminate\Foundation\Auth\Admin as Authenticate;
|
|
|
|
|
|
/**
|
|
* Class Admin
|
|
*
|
|
* @property int $id
|
|
* @property string $full_name
|
|
* @property string $username
|
|
* @property string $email
|
|
* @property string $mobile
|
|
* @property string $password
|
|
* @property int $status
|
|
* @property Carbon $created_at
|
|
* @property Carbon $updated_at
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class Admin extends User
|
|
{
|
|
protected $table = 'admins';
|
|
|
|
public static $snakeAttributes = false;
|
|
|
|
protected $casts = [
|
|
'status' => 'int',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'full_name',
|
|
'username',
|
|
'email',
|
|
'mobile',
|
|
'password',
|
|
'status',
|
|
];
|
|
}
|