⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
ppt.com.ng
/
app
/
Models
/
Edit File: User.php
*/ protected $fillable = [ 'name', 'email', 'password', ]; protected $appends = ['team_owner']; /** * The attributes that should be hidden for serialization. * * @var array
*/ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array
*/ protected $casts = [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; public function getTeamOwnerAttribute() { return @$this['team']['owner'] == null ? $this : $this['team']['owner']; } public function city() { return $this->belongsTo(City::class, 'city_id'); } public function state() { return $this->belongsTo(State::class, 'state_id'); } public function country() { return $this->belongsTo(Country::class, 'country_id'); } public function profile_image() { return $this->belongsTo(UploadFile::class, 'image_id'); } public function card_owners() { return $this->hasMany(CardOwner::class,'user_id'); } public function local_government() { return $this->belongsTo(LocalGovernment::class, 'local_government_id'); } public function origin_state() { return $this->belongsTo(OriginState::class, 'origin_state_id'); } public function products():hasMany { return $this->hasMany(Product::class, 'user_id'); } public function products_gallery():hasMany { return $this->hasMany(ProductGallery::class, 'user_id'); } }
Simpan