1

When use # keyword in env file like below

DB_PASSWORD=&#252525

Database connection not happening in laravel, As in config/database.php file we just have password = & instead of full string

How can we resolve this issue

1 Answer 1

2

Laravel consider # as a comment in environment file. So write in quotes If any text has # value in the text in environment file.

DB_PASSWORD='&#252525'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.