One Hat Cyber Team
Your IP :
3.16.143.199
Server IP :
162.241.123.123
Server :
Linux sh016.hostgator.in 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home1
/
saicsazq
/
smhtechlabs.com
/
shop
/
core
/
app
/
View File Name :
Reviewer.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class Reviewer extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $guarded = ['id']; /** * 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', 'address' => 'object', 'ver_code_send_at' => 'datetime' ]; protected $data = [ 'data'=>1 ]; public function login_logs() { return $this->hasMany(ReviewerLogin::class); } // SCOPES public function getFullnameAttribute() { return $this->firstname . ' ' . $this->lastname; } 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 scopeSmsUnverified() { return $this->where('sv', 0); } public function scopeEmailVerified() { return $this->where('ev', 1); } public function scopeSmsVerified() { return $this->where('sv', 1); } }