/**
  * @test
  **/
 public function it_create_permissions_array_values_and_add_underscore_prefix_if_not_present()
 {
     $objs = $this->createArrayOfPermissions();
     $mock_permission = $this->mockPermissionFetch($objs);
     $helper = new FormHelper($mock_permission);
     $values = $helper->getSelectValuesPermission();
     $this->assertEquals("desc1", $values["_perm1"]);
 }
<?php

use Jacopo\Authentication\Helpers\FormHelper;
/**
 * permission select
 */
View::composer(['laravel-authentication-acl::admin.user.edit', 'laravel-authentication-acl::admin.group.edit'], function ($view) {
    $fh = new FormHelper();
    $values_permission = $fh->getSelectValuesPermission();
    $view->with('permission_values', $values_permission);
});
/**
 * group select
 */
View::composer(['laravel-authentication-acl::admin.user.edit', 'laravel-authentication-acl::admin.group.edit', 'laravel-authentication-acl::admin.user.search'], function ($view) {
    $fh = new FormHelper();
    $values_group = $fh->getSelectValuesGroups();
    $view->with('group_values', $values_group);
});