Trying to get 3er level laravel relationship
<p>Let me put the code first..</p>

<h2>Permissions Model</h2>

<pre><code>class Permission extends Model {
    public function roles()
    {
        return $this-&gt;belongsToMany('App\Role');
    }

    public function menus()
    {
        return $this-&gt;belongsTo('App\Menu');
    }
}
</code></pre>

<h2>Role Model</h2>

<pre><code>class Role extends Model {

    public function users()
    {
        return $this-&gt;hasMany('App\User');
    }

    public function permissions()
    {
        return $this-&gt;belongsToMany('App\Permission');
    }
}
</code></pre>

<h2>Menu Model</h2>

<pre><code>class Menu extends Model {
    public function permissions()
    {
        return $this-&gt;hasMany('App\Permission');
    }
}
</code></pre>

<h2>User Model</h2>

<pre><code>class User extends Authenticatable {    
    public function role()
    {
        return $this-&gt;belongsTo('App\Role');
    }

 }
</code></pre>

<p>Well, 
I'm trying to get something like (assuming that I already got a single user)  <code>$user-&gt;role-&gt;permissions-&gt;menus</code>
I'm trying to get role, then the permissions associated with that role and then the menu items that are associated with that permissions.</p>

<p>Idk if i'm explaining myself..</p>