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











up vote
11
down vote

favorite
2












I'm trying to know the list of artisan command by using php artisan list . and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.

What is wrong?



Thanks in advance.










share|improve this question


















  • 1




    Some .env libraries are picky about the syntax (or you simply got it wrong). You should check your .env file.
    – Álvaro González
    Apr 26 '17 at 16:14















up vote
11
down vote

favorite
2












I'm trying to know the list of artisan command by using php artisan list . and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.

What is wrong?



Thanks in advance.










share|improve this question


















  • 1




    Some .env libraries are picky about the syntax (or you simply got it wrong). You should check your .env file.
    – Álvaro González
    Apr 26 '17 at 16:14













up vote
11
down vote

favorite
2









up vote
11
down vote

favorite
2






2





I'm trying to know the list of artisan command by using php artisan list . and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.

What is wrong?



Thanks in advance.










share|improve this question













I'm trying to know the list of artisan command by using php artisan list . and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.

What is wrong?



Thanks in advance.







php laravel artisan






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 26 '17 at 16:10









Abu Taleb

1,0471616




1,0471616








  • 1




    Some .env libraries are picky about the syntax (or you simply got it wrong). You should check your .env file.
    – Álvaro González
    Apr 26 '17 at 16:14














  • 1




    Some .env libraries are picky about the syntax (or you simply got it wrong). You should check your .env file.
    – Álvaro González
    Apr 26 '17 at 16:14








1




1




Some .env libraries are picky about the syntax (or you simply got it wrong). You should check your .env file.
– Álvaro González
Apr 26 '17 at 16:14




Some .env libraries are picky about the syntax (or you simply got it wrong). You should check your .env file.
– Álvaro González
Apr 26 '17 at 16:14












3 Answers
3






active

oldest

votes

















up vote
50
down vote



accepted










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"





share|improve this answer





















  • Explain the downvote, please.
    – Alexey Mezenin
    Jan 9 at 9:46




















up vote
4
down vote













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"





share|improve this answer




























    up vote
    -1
    down vote













    if you use two word for username or database name in .env,put it inside a double quotation.



    example






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














       

      draft saved


      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43639440%2fartisan-command-says-dotenv-values-containing-spaces-must-be-surrounded-by-quo%23new-answer', 'question_page');
      }
      );

      Post as a guest
































      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      50
      down vote



      accepted










      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"





      share|improve this answer





















      • Explain the downvote, please.
        – Alexey Mezenin
        Jan 9 at 9:46

















      up vote
      50
      down vote



      accepted










      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"





      share|improve this answer





















      • Explain the downvote, please.
        – Alexey Mezenin
        Jan 9 at 9:46















      up vote
      50
      down vote



      accepted







      up vote
      50
      down vote



      accepted






      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"





      share|improve this answer












      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"






      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Apr 26 '17 at 16:11









      Alexey Mezenin

      89k779108




      89k779108












      • Explain the downvote, please.
        – Alexey Mezenin
        Jan 9 at 9:46




















      • Explain the downvote, please.
        – Alexey Mezenin
        Jan 9 at 9:46


















      Explain the downvote, please.
      – Alexey Mezenin
      Jan 9 at 9:46






      Explain the downvote, please.
      – Alexey Mezenin
      Jan 9 at 9:46














      up vote
      4
      down vote













      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"





      share|improve this answer

























        up vote
        4
        down vote













        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"





        share|improve this answer























          up vote
          4
          down vote










          up vote
          4
          down vote









          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"





          share|improve this answer












          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"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 26 '17 at 16:13









          Andrew Rayner

          710316




          710316






















              up vote
              -1
              down vote













              if you use two word for username or database name in .env,put it inside a double quotation.



              example






              share|improve this answer



























                up vote
                -1
                down vote













                if you use two word for username or database name in .env,put it inside a double quotation.



                example






                share|improve this answer

























                  up vote
                  -1
                  down vote










                  up vote
                  -1
                  down vote









                  if you use two word for username or database name in .env,put it inside a double quotation.



                  example






                  share|improve this answer














                  if you use two word for username or database name in .env,put it inside a double quotation.



                  example







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 10 at 16:17









                  Machavity

                  23.9k135478




                  23.9k135478










                  answered Nov 10 at 15:44









                  asha_sulaiman

                  11




                  11






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43639440%2fartisan-command-says-dotenv-values-containing-spaces-must-be-surrounded-by-quo%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest




















































































                      Popular posts from this blog

                      Xamarin.iOS Cant Deploy on Iphone

                      Glorious Revolution

                      Dulmage-Mendelsohn matrix decomposition in Python