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

        $composer['require'][$this->argument('name')] = '*';

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

        $composer['require'][$this->argument('name')] = '*';

        file_put_contents(
            base_path('composer.json'),
            json_encode($composer, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)
        );
    }
protected function addThemePackageToRootComposer ( ) { $ composer = json_decode ( file_get_contents ( base_path ( 'composer.json' ) ) , true ) ; $ composer [ 'require' ] [ $ this -> argument ( 'name' ) ] = '*' ; file_put_contents ( base_path ( 'composer.json' ) , json_encode ( $ composer , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ) ; }
Add a package entry for the theme to the application's composer.json file.

@return void
Add a package entry for the theme to the application s composer . json file .