src/Consoles/BaseCommand.php
public function findingStub($stubName)
    {
        $stubRoots = $this->config->get('tie.stubs.path');
        foreach ($stubRoots as $stubRoot) {
            $stub = $stubRoot . '/' . $stubName . '.stub';
            if ($this->filesystem->exists($stub)) {
                return $stub;
            }
        }

        return '';
    }
public function findingStub($stubName)
    {
        $stubRoots = $this->config->get('tie.stubs.path');
        foreach ($stubRoots as $stubRoot) {
            $stub = $stubRoot . '/' . $stubName . '.stub';
            if ($this->filesystem->exists($stub)) {
                return $stub;
            }
        }

        return '';
    }
public function findingStub ( $ stubName ) { $ stubRoots = $ this -> config -> get ( 'tie.stubs.path' ) ; foreach ( $ stubRoots as $ stubRoot ) { $ stub = $ stubRoot . '/' . $ stubName . '.stub' ; if ( $ this -> filesystem -> exists ( $ stub ) ) { return $ stub ; } } return '' ; }
Finding multi location stub

@param $stubName
@return string
Finding multi location stub