protected function getAutoload()
    {
        $composerPath = base_path('/composer.json');
        if (! file_exists($composerPath)) {
            return [];
        }
        $composer = json_decode(file_get_contents(
            $composerPath
        ), true);

        return Arr::get($composer, 'autoload.psr-4', []);
    }
protected function getAutoload()
    {
        $composerPath = base_path('/composer.json');
        if (! file_exists($composerPath)) {
            return [];
        }
        $composer = json_decode(file_get_contents(
            $composerPath
        ), true);

        return Arr::get($composer, 'autoload.psr-4', []);
    }
protected function getAutoload ( ) { $ composerPath = base_path ( '/composer.json' ) ; if ( ! file_exists ( $ composerPath ) ) { return [ ] ; } $ composer = json_decode ( file_get_contents ( $ composerPath ) , true ) ; return Arr :: get ( $ composer , 'autoload.psr-4' , [ ] ) ; }
Get psr-4 namespace.

@return array
Get psr - 4 namespace .