uawdijnntqw1x1x1
IP : 216.73.216.130
Hostname : it-staging-server
Kernel : Linux it-staging-server 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
forge
/
stage.sksb.smartcon-survey.com
/
app
/
Providers
/
..
/
Models
/
User.php
/
/
<?php namespace App\Models; use Filament\Models\Contracts\FilamentUser; use Filament\Panel; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Sanctum\HasApiTokens; /** * @method static Builder where($column, $operator = null, $value = null, $boolean = 'and') * * @property mixed $id * @property mixed $name * @property mixed $email * @property int|mixed $is_admin * @property mixed $password */ class User extends Authenticatable implements FilamentUser { use HasApiTokens, HasFactory, Notifiable; /** * The attributes that are mass assignable. * * @var string[] */ protected $fillable = [ 'name', 'email', 'is_admin', 'password', 'email_verified_at', ]; /** * 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', ]; public static function search($search) { return empty($search) ? static::query() : static::where('id', 'like', "%{$search}%") ->orWhere('name', 'like', "%{$search}%") ->orWhere('email', 'like', "%{$search}%"); } public function canAccessPanel(Panel $panel): bool { return $this->is_admin; } }
/home/forge/stage.sksb.smartcon-survey.com/app/Providers/../Models/User.php