File manager - Edit - /home/linknsbh/restawy.online/app/Models/Admin.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class Admin extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'role_id', 'username', 'email', 'password', 'first_name', 'last_name', 'image', 'status' ]; public function role(): BelongsTo { return $this->belongsTo(Role::class,'role_id'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.19 |
proxy
|
phpinfo
|
Settings