1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 10:54:41 +00:00

All models

This commit is contained in:
2022-05-26 11:20:47 +07:00
parent 3146fb1fd0
commit c4f98fdb58
14 changed files with 248 additions and 26 deletions

View File

@@ -2,7 +2,6 @@
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;
@@ -18,8 +17,12 @@ class User extends Authenticatable
* @var array<int, string>
*/
protected $fillable = [
'name',
'first_name',
'last_name',
'middle_name',
'email',
'phone',
'photo',
'password',
];
@@ -30,7 +33,6 @@ class User extends Authenticatable
*/
protected $hidden = [
'password',
'remember_token',
];
/**
@@ -38,7 +40,7 @@ class User extends Authenticatable
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
// protected $casts = [
// 'email_verified_at' => 'datetime',
// ];
}