laravel- artistic key error when trying to generate

0

I pulled an example of a laravel project and when I give a php artisan generat:key it returns me the following error

 [Dotenv\Exception\InvalidFileException]
  Dotenv values containing spaces must be surrounded by quotes.

.env:

APP_NAME=Webchat ADMIN
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=webchat_admin
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=redis
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
    
asked by anonymous 23.07.2018 / 18:57

1 answer

1

The command is spelled wrong, the correct form is as follows:

 php artisan key:generate

As described here in the Laravel installation.

Another thing that may be happening is that in your .env file there are spaces in some word, for example.

VAR=algum texto

Words with space must be within quotes

VAR="algum texto"
    
23.07.2018 / 19:26