web/app/Models/Account.php

64 lines
1.2 KiB
PHP
Raw Normal View History

2023-07-23 01:14:14 +03:00
<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
2023-07-28 19:57:16 +03:00
use Illuminate\Foundation\Auth\User;
2023-07-23 01:14:14 +03:00
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
2023-07-28 19:57:16 +03:00
class Account extends User
2023-07-23 01:14:14 +03:00
{
use HasApiTokens, HasFactory, Notifiable;
2023-07-28 19:57:16 +03:00
/**
* 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';
2023-07-23 01:14:14 +03:00
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
2023-07-28 19:57:16 +03:00
'login',
2023-07-23 01:14:14 +03:00
'password',
2023-07-28 19:57:16 +03:00
'email',
2023-07-23 01:14:14 +03:00
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
2023-07-28 19:57:16 +03:00
'social_id',
'securitycode'
2023-07-23 01:14:14 +03:00
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
'password' => 'hashed',
];
}