uawdijnntqw1x1x1
IP : 216.73.216.145
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
admin.eclassify.codeskitter.site
/
app
/
Rules
/
..
/
Models
/
User.php
/
/
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Facades\Storage; use Laravel\Sanctum\HasApiTokens; use Spatie\Permission\Traits\HasPermissions; use Spatie\Permission\Traits\HasRoles; class User extends Authenticatable { use HasApiTokens, HasFactory, Notifiable, HasRoles, SoftDeletes, HasPermissions; /** * The attributes that are mass assignable. * * @var array<int, string> */ protected $fillable = [ 'name', 'email', 'mobile', 'password', 'type', 'firebase_id', 'profile', 'address', 'notification', 'country_code', 'show_personal_details', 'is_verified', 'auto_approve_item' ]; /** * The attributes that should be hidden for serialization. * * @var array<int, string> */ protected $hidden = [ 'password', 'remember_token', ]; /** * The attributes that should be cast. * * @var array<string, string> */ protected $casts = [ 'email_verified_at' => 'datetime', ]; public function getProfileAttribute($image) { if (!empty($image) && !filter_var($image, FILTER_VALIDATE_URL)) { return url(Storage::url($image)); } return $image; } public function items() { return $this->hasMany(Item::class); } public function sellerReview() { return $this->hasMany(SellerRating::class , 'seller_id'); } public function scopeSearch($query, $search) { $search = "%" . $search . "%"; return $query->where(function ($q) use ($search) { $q->orWhere('email', 'LIKE', $search) ->orWhere('mobile', 'LIKE', $search) ->orWhere('name', 'LIKE', $search) ->orWhere('type', 'LIKE', $search) ->orWhere('notification', 'LIKE', $search) ->orWhere('firebase_id', 'LIKE', $search) ->orWhere('address', 'LIKE', $search) ->orWhere('created_at', 'LIKE', $search) ->orWhere('updated_at', 'LIKE', $search); }); } public function user_reports() { return $this->hasMany(UserReports::class); } public function fcm_tokens() { return $this->hasMany(UserFcmToken::class); } public function getStatusAttribute($value) { if ($this->deleted_at) { return "inactive"; } if ($this->expiry_date && $this->expiry_date < Carbon::now()) { return "expired"; } return $value; } // public function getAutoApproveItemAttribute($value) // { // if ($this->is_verified == 1) { // return 1; // } // return $value; // } // public function setIsVerifiedAttribute($value) // { // $this->attributes['is_verified'] = $value; // if ($value == 1) { // $this->attributes['auto_approve_item'] = 1; // } // } }
/home/users/unlimited/www/admin.eclassify.codeskitter.site/app/Rules/../Models/User.php