33 lines
612 B
PHP
33 lines
612 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
use Laravel\Sanctum\HasApiTokens;
|
|
|
|
/**
|
|
* APP 用户模型
|
|
*/
|
|
class UserModel extends Authenticatable
|
|
{
|
|
use HasApiTokens, HasFactory, Notifiable;
|
|
|
|
protected $table = 'user';
|
|
|
|
protected $primaryKey = 'id';
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
'remember_token',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'mobile',
|
|
'username',
|
|
'email',
|
|
'password',
|
|
'nickname',
|
|
];
|
|
}
|