⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ursites
/
public_html
/
public
/
website
/
app
/
Edit File: User.php
<?php namespace App; use App\Model\Order; use App\Model\ProductCompare; use App\Model\ShippingAddress; use App\Model\Wishlist; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use Notifiable, HasApiTokens; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'f_name', 'l_name', 'name', 'email', 'password', 'phone', 'image', 'login_medium','is_active','social_id','is_phone_verified','temporary_token','referral_code','referred_by','street_address','country','city','zip' ]; /** * 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_active' => 'integer', 'is_phone_verified'=>'integer', 'is_email_verified' => 'integer', 'wallet_balance'=>'float', 'loyalty_point'=>'float', 'referred_by'=>'integer', ]; public function wish_list() { return $this->hasMany(Wishlist::class, 'customer_id'); } public function orders() { return $this->hasMany(Order::class, 'customer_id'); } public function customer() { return $this->belongsTo(User::class, 'customer_id'); } public function shipping() { return $this->belongsTo(ShippingAddress::class, 'shipping_address'); } public function compare_list() { return $this->hasMany(ProductCompare::class, 'user_id'); } }
Simpan