1
0
forked from metin2/web

Added authentication

This commit is contained in:
2023-07-28 19:57:16 +03:00
parent 67af4ef427
commit c26d8e4642
11 changed files with 181 additions and 103 deletions

View File

@ -4,23 +4,40 @@ namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Foundation\Auth\User;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
class Account extends User
{
use HasApiTokens, HasFactory, Notifiable;
/**
* The connection name for the model.
*
* @var string|null
*/
protected $connection = 'account';
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'account';
const UPDATED_AT = null;
const CREATED_AT = 'create_time';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'name',
'email',
'login',
'password',
'email',
];
/**
@ -30,7 +47,8 @@ class User extends Authenticatable
*/
protected $hidden = [
'password',
'remember_token',
'social_id',
'securitycode'
];
/**