Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Fix 'laravel new project-name --jet' #176

Closed
wants to merge 1 commit into from

Conversation

antonioribeiro
Copy link

@antonioribeiro antonioribeiro commented Sep 13, 2020

If you create an app using

laravel new project-name --jet
cd project-name
valet link

And try to open the page right away, this is what you will see:

Illuminate\Database\QueryException
SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `sessions` where `id` = fZXzv4NDHB0ZxfUwdQV5Z4FmAuIdjEMyOy7zKwop limit 1)

Because you probably don't have a database configured. This PR fix this by only configuring the your .env if you actually have a database connection configured. So new users will still see the new Laravel app page.

@antonioribeiro antonioribeiro changed the title Fix 'laravel new project-name --jet' [1.x] Fix 'laravel new project-name --jet' Sep 13, 2020
@taylorotwell
Copy link
Member

I think it's fine as is for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants