File manager - Edit - /home/linknsbh/rassudr.online/app/Models/Admin.php
Back
<?php namespace App\Models; use App\Models\RolePermission; use Illuminate\Auth\Authenticatable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Admin extends Model implements AuthenticatableContract { use HasFactory, Authenticatable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'role_id', 'first_name', 'last_name', 'image', 'username', 'email', 'password', 'status', 'address', 'details', 'lang_code' ]; /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = ['password']; public function role() { return $this->belongsTo(RolePermission::class, 'role_id', 'id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.15 |
proxy
|
phpinfo
|
Settings