protected function getCommands()
    {
        $commands = [];

        foreach ($this->getApplication()->all() as $name => $command) {
            if (in_array($name, $this->commandWhitelist)) {
                $commands[] = $command;
            }
        }

        foreach (config('tinker.commands', []) as $command) {
            $commands[] = $this->getApplication()->resolve($command);
        }

        return $commands;
    }
protected function getCommands()
    {
        $commands = [];

        foreach ($this->getApplication()->all() as $name => $command) {
            if (in_array($name, $this->commandWhitelist)) {
                $commands[] = $command;
            }
        }

        foreach (config('tinker.commands', []) as $command) {
            $commands[] = $this->getApplication()->resolve($command);
        }

        return $commands;
    }
protected function getCommands ( ) { $ commands = [ ] ; foreach ( $ this -> getApplication ( ) -> all ( ) as $ name => $ command ) { if ( in_array ( $ name , $ this -> commandWhitelist ) ) { $ commands [ ] = $ command ; } } foreach ( config ( 'tinker.commands' , [ ] ) as $ command ) { $ commands [ ] = $ this -> getApplication ( ) -> resolve ( $ command ) ; } return $ commands ; }
Get artisan commands to pass through to PsySH.

@return array
Get artisan commands to pass through to PsySH .