芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pennysave/application/app/Models/User.php
'datetime', 'address' => 'object', 'kyc_data' => 'object', 'ver_code_send_at' => 'datetime' ]; public function loginLogs() { return $this->hasMany(UserLogin::class); } public function transactions() { return $this->hasMany(Transaction::class)->orderBy('id','desc'); } public function deposits() { return $this->hasMany(Deposit::class)->where('status','!=',0); } public function fullname(): Attribute { return new Attribute( get: fn() => $this->firstname || $this->lastname ? $this->firstname . ' ' . $this->lastname : '@'.$this->username, ); } // SCOPES public function scopeActive() { return $this->where('status', 1); } public function scopeBanned() { return $this->where('status', 0); } public function scopeEmailUnverified() { return $this->where('ev', 0); } public function scopeMobileUnverified() { return $this->where('sv', 0); } public function scopeEmailVerified() { return $this->where('ev', 1); } public function scopeMobileVerified() { return $this->where('sv', 1); } public function scopeWithBalance() { return $this->where('balance','>', 0); } }