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
2
votes
0 answers

Auth with NuxtJS and Sanctum on Valet setup

Hours wasted but still can't understand why I'm only able to run authorization with NuxtJS and Laravel Sanctum only through http://localhost, every other time I'm getting 419 token mismatch. I know that for authorization to work properly frontend…
RomkaLTU
  • 3,683
  • 8
  • 40
  • 63
2
votes
1 answer

Laravel Valet 504 Gateway Time-out nginx/1.19.6 after 60 seconds

I followed all the instructions here: https://github.com/laravel/valet/issues/315 I noticed a better performance, especially after updating the PM pool configuration for Valet. (Now some execution started to be completed because the time needed is…
Ponzio Pilato
  • 315
  • 1
  • 5
  • 18
2
votes
4 answers

Laravel Valet & Local by Flywheel have DNS conflict and not working together on Mac

I am trying to make Valet and Local work together on Mac but with no luck. There's probably a DNS conflict with dnsmasq. For example I have these two sites, with the default configuration setup: Site on Local: local-site.local Local is an…
gradosevic
  • 4,809
  • 2
  • 36
  • 51
2
votes
1 answer

Valet 502 Bad Gateway

valet is not working after I updated php from 7.3 to 7.4. I already tried to reinstall valet, php, nginx and dnsmasq but it's still not working. Now the ngix server is running but I can't acces to my projects. I get the error 502 Bad Gateway for…
2
votes
3 answers

Laravel valet change php version doesn't work on mac os

I try to change PHP version used by valet, so I execute following command: valet use php@7.4 Valet return a success message: Valet is now using php@7.4. But if I use phpinfo() on a .test website, I see that php is in 7.3. I've changed the php…
ZecKa
  • 2,552
  • 2
  • 21
  • 39
2
votes
1 answer

wordpress add_rewrite_rule() not showing expected page

I am trying to use the wordpress rewrite rule to configure routing for a plugin that I am developing. I am calling the code from within a class I have created for my plugin - the code that I am using is: function __construct() { …
the_peacock
  • 399
  • 2
  • 5
  • 19
2
votes
1 answer

Laravel environment variable in vue component

I'm having a problem getting the correct value for an environment variable I have set. I am working on a localhost with valet. This specific domain is configure for ssl (valet secure), and the URL I am on also shows the certificate and correct…
nepp95
  • 131
  • 1
  • 13
2
votes
1 answer

Why Collection's toArray() method does not convert nested objects to arrays when called in a PHPUnit test?

Expected behavior: Collections toArray() method should convert a collection to a plain array and all of the collection's nested objects that are an instance of Arrayable to an array. Actual behavior: toArray() method converts a collection to a plain…
Nikolai Kiselev
  • 6,201
  • 2
  • 27
  • 37
2
votes
1 answer

PHP.ini memory_limit not updating

I have installed PHP through Homebrew and I'm using Laravel Valet to serve my projects locally. I would like to update the memory_limit in PHP.ini but for some reason it looks like it's not updating. If I run php --ini I get: Configuration File…
eskimo
  • 2,421
  • 5
  • 45
  • 81
2
votes
0 answers

Why isn't Laravel Valet working with homebrew on Catalina?

On a new MacBook Pro (Catalina), I have done the following: Install homebrew brew install php Install composer composer require laravel/valet valet install valet tld localhost When I ping foo.localhost, I get: cannot resolve test.localhost:…
Leon Segal
  • 679
  • 7
  • 28
2
votes
1 answer

Access site served locally via Laravel Valet from Docker container

I'm trying to get my local dev environment setup using a combination of Docker which is serving a webapp that I'm developing, and Laravel Valet which is serving the API (being served on api.test). What I can't figure out is how to hit the API from…
oldo.nicho
  • 2,149
  • 2
  • 25
  • 39
2
votes
4 answers

MySQL installed with homebrew stopped working

I'm running Laravel with Valet on localhost. The other day my DB stopped working and I got this error. I've tried varies solutions from StackOverlfow but nothing seems to work for good. I had some success with re-installing MySQL. First it worked,…
Jonas Holm
  • 53
  • 1
  • 1
  • 11
2
votes
0 answers

Laravel Valet failed to open stream error

I have viewed and tried the below article suggestion: Laravel & Valet: Failed to open stream none of this worked for me. the only way to solve this is from me to rename the project folder. if I do that, it works. the question is, why all of the…
princeoo7
  • 1,071
  • 3
  • 21
  • 44
2
votes
1 answer

How to connect to Laravel Vapor database for local development?

I'm using Laravel Vapor for serverless deployment and Laravel Valet for local development. I've chosen a private serverless database on Vapor and created a "jumpbox" in Vapor to connect with that database via SSH in other applications. But how do I…
Holly
  • 3,601
  • 1
  • 17
  • 23
2
votes
1 answer

Fatal error installing wordpress on local windows computer using valet (cretueusebiu/valet-windows)

I'm trying to get a local development environment setup on my windows machine using valet for windows. It works as intended for laravel and standard applications, but not for installing wordpress. It returns a fatal error. I'm running php version…
Hayden
  • 241
  • 3
  • 6