ok
Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/fms-worksuite/app/Models/ |
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/fms-worksuite/app/Models/RoleUser.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * App\Models\RoleUser * * @property int $user_id * @property int $role_id * @property-read mixed $icon * @property-read \App\Models\Role $role * @property-read \App\Models\User $user * @method static \Illuminate\Database\Eloquent\Builder|RoleUser newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|RoleUser newQuery() * @method static \Illuminate\Database\Eloquent\Builder|RoleUser query() * @method static \Illuminate\Database\Eloquent\Builder|RoleUser whereRoleId($value) * @method static \Illuminate\Database\Eloquent\Builder|RoleUser whereUserId($value) * @mixin \Eloquent */ class RoleUser extends BaseModel { protected $table = 'role_user'; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } public function role(): BelongsTo { return $this->belongsTo(Role::class, 'user_id'); } public $timestamps = false; }