Questions tagged [laravel-valet]

Valet is a Laravel development environment for Mac minimalists

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You can even share your sites publicly using local tunnels.

Laravel Valet configures your Mac to always run Nginx in the background when your machine starts. Then, using DnsMasq, Valet proxies all requests on the *.test domain to point to sites installed on your local machine.

https://laravel.com/docs/master/valet

272 questions
1
vote
0 answers

How to turn off php deprecated alerts in Laravel Valet?

I did a composer update from project and now I get this annoying error below every time I try to run the tinker. I'm using Laravel Valet to serve my projects and tried to put in all php.ini files the error_reporting error_reporting = E_ALL &…
Stark
  • 65
  • 2
  • 9
1
vote
1 answer

Could not find installation path for: apcu valet

I set up valet pro with composer, however, the site threw an error ERR_CONNECTION_REFUSED. I tried to run valet install and it failed due to valet not finding installation path for pecl. How can I fix this? [nginx] Stopping [valet-php@7.2]…
Mantė
  • 11
  • 2
1
vote
1 answer

502 Bad Gateway nginx/1.17.10 Laravel

I'm getting a 502 Bad Gateway nginx/1.17.10 error when trying to visit a Laravel .test site with Valet. I'm having no issues with another Laravel app running on .test. I have tried reinstalling nginx, php, valet, and have tried using php versions…
nateM
  • 502
  • 4
  • 10
  • 25
1
vote
1 answer

Valet status is showing "is stopped"

I have a windows 10 insider build, and I am trying to install cpriego/valet-linux using wsl2 I have installed composer, php and all other the requirements. Now when I do valet start then valet status it shows me nginx Is Stopped fpm is stopped. See…
rook99
  • 1,034
  • 10
  • 34
1
vote
1 answer

All new Laravel instances are broken (with Laravel installer)

Something seems to be wrong with freshly created Laravel instances on my machine. laravel new demo -> "Application ready! Build something amazing." Open http://demo.test/ Exception gets thrown: Declaration of…
Filyas
  • 11
  • 4
1
vote
1 answer

Why does laravel installer not work when valet is running

When running Valet+ in macos Catalina running the laravel new blog command in terminal results in the error "cURL error 52: Empty reply from server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)". However if I stop valet with valet stop it…
Finchy70
  • 441
  • 9
  • 25
1
vote
1 answer

Valet Plus Installation Problems - MacOS Catalina

I've had Valet Plus installed on my Mac for about 2 years with no problems. Then the other week it suddenly stopped working, I think after upgrading to Catalina, by saying the apcu_fetch() could not be found. Thinking it was me that had screwed…
Jimmyb_1991
  • 346
  • 5
  • 12
1
vote
1 answer

Valet is working but can't create a new Laravel install?

I have valet working in the sense that I can ping .test domains and I even have a dummy index.php hello world in a "test" folder in the "builds" folder. (I'd like to keep my sites in the "builds" folder) I thought it was as simple as cd into the…
Henry
  • 5,195
  • 7
  • 21
  • 34
1
vote
2 answers

cURL Failed to connect to port 80

I am using cURL in my PHP script to test my API. When i try to use my function to get data it throw me an error Error: Failed to connect to alenke.test port 80: Connection refused but when I execute it in the terminal curl --ipv4 -v…
Mohammed Alama
  • 145
  • 2
  • 9
1
vote
2 answers

Error installing php 71 with homebrew on my mac

I have been developing with Vallet for some time now. Today i wanted to update laravel 5.4 to 5.5. Before doing so i run composer global update. Causing Vallet to stop working. Fist i tried to do the following: cd ~/.composer/ sudo chown -R…
mbo
  • 13
  • 6
1
vote
0 answers

Error in php-fpm.log (another instance already listening) - 502 Bad Gateway

Today, I started getting a 502 Bad Gateway error in a Laravel app I am working on. After hours of research and combing through my codebase I see that php-fpm is not working correctly with Laravel Valet. The 502 Bad Gateway error happens on…
Daniel
  • 339
  • 1
  • 2
  • 14
1
vote
2 answers

Laravel & Valet: Failed to open stream

I'm trying to setup a Laravel project on Valet. I'm getting this error: Warning: require(/Users/davina/Developer/learn-laravel-graphql/public/../vendor/autoload.php): failed to open stream: No such file or directory in…
Davina Leong
  • 737
  • 2
  • 11
  • 28
1
vote
1 answer

Laravel Valet Share Error: "dial tcp [...] no such host"

I just installed Laravel Valet. Everything works perfectly, except for the site sharing function. After typing valet share Terminal returns the following output, right before Ngrok opens: grep: /Users/myname/.config/valet/Nginx/myurl*: No such file…
Jeroen
  • 21
  • 3
1
vote
0 answers

Valet not working for WordPress site: Error establishing a database connection

I am having a problem connecting to my WordPress site using Valet. I get the following error: Warning: mysqli_real_connect(): (HY000/1045): Access denied for user 'db_username'@'localhost' (using password: YES) in …
Brad Ahrens
  • 4,864
  • 5
  • 36
  • 47
1
vote
0 answers

Can I have non-Laravel site in Nginx when Laravel Valet is installed?

I have installed Laravel Valet to use for development of Laravel projects. Now I would like to use the Nginx installed to run Valet for other non-framework php site. Is this possible? I tried making a file in /usr/local/etc/nginx/servers…
s-t
  • 385
  • 4
  • 14