App\Console\Commands\PluginMake::makeDirectoryStructure PHP Method

makeDirectoryStructure() protected method

protected makeDirectoryStructure ( $path )
    protected function makeDirectoryStructure($path)
    {
        $defaultDirectories = ['src', 'views', 'assets'];
        foreach ($defaultDirectories as $dir) {
            $this->makeDirectory($path . '/' . $dir);
        }
        // index.blade.php
        $stub = $this->files->get($this->getStub('index.blade.stub'));
        $this->files->put($path . '/views/index.blade.php', $stub);
        // style.css
        $stub = $this->files->get($this->getStub('style.css.stub'));
        $this->files->put($path . '/assets/style.css', $stub);
    }