Many To Many: Defining The Inverse Of The Relationship

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Role extends Model
{
    /**
     * The users that belong to the role.
     */
    public function users()
    {
        return $this->belongsToMany('App\User');
    }
}

Many To Many: Defining The Inverse Of The Relationship — Structure map

Clickable & Draggable!

Many To Many: Defining The Inverse Of The Relationship — Related pages: