Current File : //proc/thread-self/root/proc/self/root/home/tradevaly/www/app/Models/RoleHasPermission.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class RoleHasPermission extends Model
{
    use HasFactory;
    
    public function permission()
    {
        return $this->belongsTo(Permission::class);
    }
    public function role()
    {
        return $this->belongsTo(Role::class);
    }
}