src/Commands/RenameCommand.php
private function asksForApplicationName(): string
    {
        if (empty($name = $this->input->getArgument('name'))) {
            $name = $this->ask('What is your application name?');
        }

        if (empty($name)) {
            $name = trim(basename($this->app->basePath()));
        }

        return Str::lower($name);
    }
private function asksForApplicationName(): string
    {
        if (empty($name = $this->input->getArgument('name'))) {
            $name = $this->ask('What is your application name?');
        }

        if (empty($name)) {
            $name = trim(basename($this->app->basePath()));
        }

        return Str::lower($name);
    }
private function asksForApplicationName ( ) : string { if ( empty ( $ name = $ this -> input -> getArgument ( 'name' ) ) ) { $ name = $ this -> ask ( 'What is your application name?' ) ; } if ( empty ( $ name ) ) { $ name = trim ( basename ( $ this -> app -> basePath ( ) ) ) ; } return Str :: lower ( $ name ) ; }
Asks for the application name.

If there is no interaction, we take the folder basename.
Asks for the application name .