src/Commands/ThemeCommand.php
protected function addThemeRepositoryToRootComposer()
    {
        $composer = json_decode(file_get_contents(base_path('composer.json')), true);

        $composer['repositories'][] = [
            'type' => 'path',
            'url' => './'.$this->relativeThemePath(),
        ];

        file_put_contents(
            base_path('composer.json'),
            json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
        );
    }
protected function addThemeRepositoryToRootComposer()
    {
        $composer = json_decode(file_get_contents(base_path('composer.json')), true);

        $composer['repositories'][] = [
            'type' => 'path',
            'url' => './'.$this->relativeThemePath(),
        ];

        file_put_contents(
            base_path('composer.json'),
            json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
        );
    }
protected function addThemeRepositoryToRootComposer ( ) { $ composer = json_decode ( file_get_contents ( base_path ( 'composer.json' ) ) , true ) ; $ composer [ 'repositories' ] [ ] = [ 'type' => 'path' , 'url' => './' . $ this -> relativeThemePath ( ) , ] ; file_put_contents ( base_path ( 'composer.json' ) , json_encode ( $ composer , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ) ; }
Add a path repository for the theme to the application's composer.json file.

@return void
Add a path repository for the theme to the application s composer . json file .