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.
This commit is contained in:
2023-06-16 16:50:12 +03:00
parent 4a4d5e7335
commit ea120c8c9c
4 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class User extends Authenticatable
* @var array<int, string>
*/
protected $fillable = [
'name',
'username',
'matrix_username',
'phone',
];