/**
  * Save permissions per action
  *
  * @param Collection $roles
  * @param Action $action
  */
 protected function savePermissions(Collection $roles, Action $action)
 {
     $roles->each(function ($role) use($action) {
         $permission = new Permission();
         $permission->role()->associate($role);
         $permission->action()->associate($action);
         $permission->save();
     });
     $permission = new Permission();
     $permission->action()->associate($action);
     $permission->save();
 }