Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
Artisan command says : Dotenv values containing spaces must be surrounded by quotes

I'm trying to know the list of artisan command by using php artisan list . and the command return me the following error [Dotenv\Exception\InvalidFileException] Dotenv values containing spaces must be surrounded by quotes. What is wrong?

Thanks in advance.

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

You should remove all spaces from .env file to make an app work again.

If you have to use spaces, instead of this:

VAR=some data

Use quotes:

VAR="some data"
about 4 years ago · Santiago Trujillo Report

0

Verify your .env file. You need to check for the following:

  • Any extra or non-needed spaces
  • If you have any strings with spaces, make sure to surround them in quotes

Example:

varaible=123 Test

Needs to be

varaible="123 Test"
about 4 years ago · Santiago Trujillo Report

0

Make sure that:

  • all variables with spaces are surrounded by quotes
  • there are no semi-colons
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!