Files
sogandAsghary.Project09/app/Models/Admin.php
T

27 lines
432 B
PHP

<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Admin extends Authenticatable
{
protected $table = 'admins';
protected $fillable = [
'username',
'password',
'status',
'last_login_at',
];
protected $hidden = [
'password',
];
protected $casts = [
'status' => 'int',
'last_login_at' => 'datetime',
];
}