title: give every user role for every page on laravel 5.5
body: <p>im working on a laravel 5.5 project 
  and they told me to make role for every page 
  create edit update delete search softdelete</p>
  
  <p>so i have created user table 
  this is the migration </p>
  
  <pre><code>public function up()
  {
      Schema::create('users', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;string('user_name',40)-&gt;unique();
          $table-&gt;string('user_email',40)-&gt;nullable()-&gt;unique();
          $table-&gt;string('user_phone',40)-&gt;nullable()-&gt;unique();
          $table-&gt;integer('user_department');
          $table-&gt;string('password',60);
          $table-&gt;rememberToken();
          $table-&gt;timestamps();
          $table-&gt;softDeletes();
      });
  }
  </code></pre>
  
  <p>and i have created model table this is the migration </p>
  
  <pre><code>public function up()
  {
      Schema::create('models', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;string('model_name',40)-&gt;unique();
          $table-&gt;timestamps();
          $table-&gt;softDeletes();
      });
  }
  </code></pre>
  
  <p>and i have created modelroles table </p>
  
  <pre><code>public function up()
  {
      Schema::create('modelroles', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;integer('model_id');
          $table-&gt;integer('user_id');
          $table-&gt;integer('create');
          $table-&gt;integer('read');
          $table-&gt;integer('update');
          $table-&gt;integer('softdelete');
          $table-&gt;integer('delete');
          $table-&gt;integer('restore');
          $table-&gt;integer('search');
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>and i have created middlewaer called roleMiddleware 
  this is the code </p>
  
  <pre><code>use Closure;
  class roleMiddleware
  {
  public function handle($request, Closure $next)
  {
      return $next($request);
  }
  }
  </code></pre>
  
  <p>so how can i connect them together in the middleware 
  what i want is to give every user role in every page create read update delete ect 
  mean check the url the request come from 
  and check the user id 
  and check the model id
  and check the user_id and the model_id inside modelroles 
  and if he can create edit update delete on the model 
  i dont want to use packages like this 
  <a href="https://github.com/laravel-enso/RoleManager" rel="nofollow noreferrer">https://github.com/laravel-enso/RoleManager</a>
  or this 
  <a href="https://github.com/Zizaco/entrust" rel="nofollow noreferrer">https://github.com/Zizaco/entrust</a>
  i dont want to connect users with global role 
  i want to give every user role for every controller </p>