TA/web_JMW/app/Models/Admin.php

28 lines
540 B
PHP

<?php
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class Admin extends Authenticatable
{
use HasApiTokens, Notifiable;
protected $table = 'admin';
protected $primaryKey = 'username';
public $incrementing = false;
protected $keyType = 'string';
public $timestamps = false;
protected $fillable = [
'username',
'password',
];
protected $hidden = [
'password',
];
}