title: Add multiple permissions to one role entrust Role-based Permissions for Laravel 5
body: <p><br /></p>
  
  <p>I just add entrust to Laravel project, i can create role, create permission , attachPermission, assignRole. <br /></p>
  
  <p>Now i want to attach multiple permissions to one Role ,for example i add this permissions [create-user,edit-user,remove-user,update-user] to superAdmin Role.</p>
  
  <pre><code>public function attachPermission(Request $request){
          $role = Role::where('name', '=', $request-&gt;input('role'))-&gt;first();
          $permission = Permission::where('name', '=', $request-&gt;input('name'))-&gt;first();
          foreach ($permission as $pers){
              $role-&gt;attachPermissions($pers);
          }
              return response()-&gt;json("done");
      }
  </code></pre>
  
  <p>This code take last just permission, this is a backend i test with Postman.<br />
  So what's the best why to do it ? and thanks for help .</p>