for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mongi\Mongicommerce\Models;
use Mongi\Mongicommerce\Models\Order;
use Illuminate\Notifications\Notifiable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use HasFactory, Notifiable;
Illuminate\Notifications\Notifiable
$email
Mongi\Mongicommerce\Models\User
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'first_name',
'last_name',
'email',
'password',
];
* The attributes that should be hidden for arrays.
protected $hidden = [
'remember_token',
* The attributes that should be cast to native types.
protected $casts = [
'email_verified_at' => 'datetime',
public function orders()
return $this->hasMany(Order::class, 'user_id');
}