Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
painelkaickaviella.meumercado.app
/
app
/
Editing: User.php
<?php namespace App; use App\Model\CustomerAddress; use App\Model\Order; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name','f_name', 'l_name', 'phone', 'email', 'password', ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = [ 'email_verified_at' => 'datetime', 'is_phone_verified' => 'integer', ]; public function orders(){ return $this->hasMany(Order::class,'user_id'); } public function addresses(){ return $this->hasMany(CustomerAddress::class,'user_id'); } }
Save
Cancel