Files
dots-bot-api/app/Models/User.php
T
KKlochko ea120c8c9c Update User, Cart models.
Added isEmpty (no items), setCity, dropItems to Cart.
The cart field, company, was made nullable.

Updated the user field from name to username and made it unique.
2023-06-16 16:50:12 +03:00

26 lines
554 B
PHP

<?php
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'username',
'matrix_username',
'phone',
];
}