-
Notifications
You must be signed in to change notification settings - Fork 24.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82213fb
commit a895748
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DB_HOST=mysql
is causing all kinds of problems; I'm seeing multiple questions a day on Stack Overflow about it. I'd file an issue but seems one can't do that here. What is the rationale for changing it from localhost?a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Laravel is configured for Sail out of the box.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was updated in symmetry with the getting started documentation for Laravel.
The
.env
file is - and always has - been owned by you from the moment it has been cloned down, so you’re naturally free to make changes to suit your environment.It’s different than it has been, but it’s not broken. The Laravel application skeleton spent follow semantic versioning.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can execute the command during the intallation:
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's all well and good to say "you can change it to whatever you want" but you're not working in a vacuum here. You're invalidating years of instructions and tutorials, and it is causing problems for your users. All I'm suggesting is a note in the documentation saying that you'll need to change the
.env
file database config if you're installing it with Composer.a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change forces people to use Laravel Sail.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@realodix these changes don't forces anything. You own this file so free to adjust this in the way you need for your project.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've reverted the defaults and Sail will now update these through laravel.build
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect solution :)
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who is "most users" and how do they use Laravel, if updating your .env file isn't a common part of starting a project?
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driesvints thank you for reconsidering. @martindilling spend some time on Stack Overflow in the PHP tag and you can find out for yourself...
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to fix this when I noticed it was giving developers issue. @taylorotwell closed it without a definite reason.
#5484
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gabrielfemi if you submit PRs with empty descriptions, always expect them to be closed with an "empty" reason.
a895748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a new Sail project yesterday, and the build did not set it to
mysql
, is it expected?