src/Consoles/TieResourceCommand.php
public function createStubs()
    {
        foreach ($this->options() as $stubKey => $fileName) {
            if(!blank($fileName) && $fileName) {
                $this->resourceName = $fileName;
                $this->stubKey = $stubKey;
                if($stubKey == 'key') {
                    $this->stubKey = $fileName;
                    $this->resourceName = strtolower($this->ask('Enter your file name'));
                }
                $configuration = $this->config->get('tie.stubs.structure.' . $this->stubKey);
                $this->createStubFiles($configuration);
            }
        }
    }
public function createStubs()
    {
        foreach ($this->options() as $stubKey => $fileName) {
            if(!blank($fileName) && $fileName) {
                $this->resourceName = $fileName;
                $this->stubKey = $stubKey;
                if($stubKey == 'key') {
                    $this->stubKey = $fileName;
                    $this->resourceName = strtolower($this->ask('Enter your file name'));
                }
                $configuration = $this->config->get('tie.stubs.structure.' . $this->stubKey);
                $this->createStubFiles($configuration);
            }
        }
    }
public function createStubs ( ) { foreach ( $ this -> options ( ) as $ stubKey => $ fileName ) { if ( ! blank ( $ fileName ) && $ fileName ) { $ this -> resourceName = $ fileName ; $ this -> stubKey = $ stubKey ; if ( $ stubKey == 'key' ) { $ this -> stubKey = $ fileName ; $ this -> resourceName = strtolower ( $ this -> ask ( 'Enter your file name' ) ) ; } $ configuration = $ this -> config -> get ( 'tie.stubs.structure.' . $ this -> stubKey ) ; $ this -> createStubFiles ( $ configuration ) ; } } }
Eligible stub config
Eligible stub config