src/LaravelSimpleHelper/LaravelSimpleHelperServiceProvider.php
public function register(){
        $this->mergeConfigFrom(
            __DIR__.'/../config/simplehelper.php', 'simplehelper'
        );
        
        //load custom helpers with config
        if (count(config('simplehelper.custom_helpers'))) {
            foreach (config('simplehelper.custom_helpers') as $customHelper) {
                $file = app_path() . '/' . $this->getHelpersDirectory() . '/' . $customHelper . '.php';
                if(file_exists($file)) {
                    require_once($file);
                }
            }
        }
        //just load all of them
        else {
            foreach (glob(app_path() . '/' . $this->getHelpersDirectory() . '/*.php') as $file) {
                require_once($file);
            }
        }
    }
public function register(){
        $this->mergeConfigFrom(
            __DIR__.'/../config/simplehelper.php', 'simplehelper'
        );
        
        //load custom helpers with config
        if (count(config('simplehelper.custom_helpers'))) {
            foreach (config('simplehelper.custom_helpers') as $customHelper) {
                $file = app_path() . '/' . $this->getHelpersDirectory() . '/' . $customHelper . '.php';
                if(file_exists($file)) {
                    require_once($file);
                }
            }
        }
        //just load all of them
        else {
            foreach (glob(app_path() . '/' . $this->getHelpersDirectory() . '/*.php') as $file) {
                require_once($file);
            }
        }
    }
Register the service provider.