V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
www
/
pos
/
app
/
Models
/
Viewing: User.php
<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; protected $dates = ['deleted_at']; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'firstname', 'lastname', 'username', 'email', 'password', 'phone', 'statut', 'avatar', 'role_id','is_all_warehouses' ]; /** * 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', 'role_id' => 'integer', 'statut' => 'integer', 'is_all_warehouses' => 'integer', ]; public function oauthAccessToken() { return $this->hasMany('\App\Models\OauthAccessToken'); } public function roles() { return $this->belongsToMany(Role::class); } public function assignRole(Role $role) { return $this->roles()->save($role); } public function hasRole($role) { if (is_string($role)) { return $this->roles->contains('name', $role); } return !!$role->intersect($this->roles)->count(); } public function assignedWarehouses() { return $this->belongsToMany('App\Models\Warehouse'); } }
Coded With 💗 by
HanzOFC