Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current none :
/
proc
/
self
/
root
/
var
/
www
/
html
/
tpid-aden
/
api
/
app
/
Models
/
Or
Select Your none :
Upload File :
New :
File
Dir
//proc/self/root/var/www/html/tpid-aden/api/app/Models/User.php
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; use App\Helpers\AdvanceSearch; class User extends Authenticatable { use HasFactory, Notifiable, HasApiTokens, AdvanceSearch; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email', 'password', 'user_admin_type_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 */ // Add this field for use Advance search protected $columns = [ 'name' => 'like', 'email' => 'like', 'user_admin_type_id' => 'like' ]; protected $casts = [ 'email_verified_at' => 'datetime', ]; public function user_admin_type(){ return $this->belongsTo('App\Models\UserAdminType', 'user_admin_type_id', 'id'); } }