public function handle()
    {
        $acl           = app('antares.acl')->make('antares/acl');
        $canCreateRole = $acl->can('create-role');
        if (!$canCreateRole) {
            return;
        }
        $this->createMenu();

        if ($canCreateRole) {
            $this->handler
                    ->add('role-add', '^:roles')
                    ->title('Add Group')
                    ->icon('zmdi-plus-circle-o')
                    ->link(handles('antares::acl/index/roles/create'));
        }
    }
public function handle()
    {
        $acl           = app('antares.acl')->make('antares/acl');
        $canCreateRole = $acl->can('create-role');
        if (!$canCreateRole) {
            return;
        }
        $this->createMenu();

        if ($canCreateRole) {
            $this->handler
                    ->add('role-add', '^:roles')
                    ->title('Add Group')
                    ->icon('zmdi-plus-circle-o')
                    ->link(handles('antares::acl/index/roles/create'));
        }
    }
public function handle ( ) { $ acl = app ( 'antares.acl' ) -> make ( 'antares/acl' ) ; $ canCreateRole = $ acl -> can ( 'create-role' ) ; if ( ! $ canCreateRole ) { return ; } $ this -> createMenu ( ) ; if ( $ canCreateRole ) { $ this -> handler -> add ( 'role-add' , '^:roles' ) -> title ( 'Add Group' ) -> icon ( 'zmdi-plus-circle-o' ) -> link ( handles ( 'antares::acl/index/roles/create' ) ) ; } }
Create a handler.
@return void
Create a handler .