src/Commands/RenameCommand.php
private function rename(): RenameCommand
    {
        $name = $this->asksForApplicationName();

        if (File::exists($this->app->basePath($name))) {
            $this->app->abort(403, 'Folder or file already exists.');
        } else {
            $this->renameBinary($name)
                ->updateComposer($name);
        }

        return $this;
    }
private function rename(): RenameCommand
    {
        $name = $this->asksForApplicationName();

        if (File::exists($this->app->basePath($name))) {
            $this->app->abort(403, 'Folder or file already exists.');
        } else {
            $this->renameBinary($name)
                ->updateComposer($name);
        }

        return $this;
    }
private function rename ( ) : RenameCommand { $ name = $ this -> asksForApplicationName ( ) ; if ( File :: exists ( $ this -> app -> basePath ( $ name ) ) ) { $ this -> app -> abort ( 403 , 'Folder or file already exists.' ) ; } else { $ this -> renameBinary ( $ name ) -> updateComposer ( $ name ) ; } return $ this ; }
Updates the binary name and the application
name on the composer.json.
Updates the binary name and the application name on the composer . json .