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

Laravel Valet logs

I'm using laravel valet to serve sites in my local dev env, which is great. However, there's only one file in the expected location of ~/.valet/Log: ➜ ls ~/.valet/Log nginx-error.log I've tinkered with php-fpm log settings and the nginx log…
user101289
  • 9,888
  • 15
  • 81
  • 148
10
votes
2 answers

valet local domain with browser sync Laravel mix

I have load laravel project which runs fine with valet domain something.dev Tried to implement browser sync with laravel-mix mix.browserSync({ proxy: 'something.dev' }); After running npm run watch it is pointing me to…
Rahul Sharma
  • 779
  • 2
  • 12
  • 27
10
votes
7 answers

Laravel valet linked php error

I got an error. $ valet install [DomainException] Unable to determine linked PHP. install 'which' command returns: $ which php /usr/local/Cellar/php70/7.0.6/bin/php
Sworup Shakya
  • 1,328
  • 3
  • 16
  • 44
9
votes
7 answers

Laravel Valet - This Site Can't Be Reached

I have successfully followed the Setup a Mac Dev Machine until this tutorial: https://laracasts.com/series/setup-a-mac-dev-machine-from-scratch/episodes/10?autoplay=true The problem is that when I go to SITENAME.dev, nothing shows up. Instead, I get…
Moshe
  • 551
  • 3
  • 7
  • 17
8
votes
1 answer

Laravel Sanctum : blocked by CORS policy with Nuxt Auth module

I have a Laravel website served by Valet on backend.test and a Nuxt SPA on nuxt.backend.test:3005. When I try to authenticate to Sanctum with Nuxt Auth module, I get the CORS error below: Access to XMLHttpRequest at 'http://backend.test/login' from…
DevonDahon
  • 7,460
  • 6
  • 69
  • 114
7
votes
1 answer

Sudo giving error after installing homebrew and Laravel Valet

I had just installed homebrew and afterwards I installed Laravel Valet. I am now not able to run any sudo commands at all, and it basically broke my computer. This is the errors I get when running sudo in terminal >>> /etc/sudoers.d/brew: Alias…
Oliver Nybroe
  • 1,828
  • 22
  • 30
6
votes
2 answers

How to resolve: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client?

I get the error whenever I try to access the route created with valet home.test. I have tried all the solutions listed in similar issues like this solution but nothing seems to work The error is: SQLSTATE[HY000] [2054] The server requested…
Bazinga_
  • 95
  • 1
  • 1
  • 5
6
votes
5 answers

Laravel CORS Issue when dealing with image files inside public folder?

So I store images inside my public folder inside a subdirectory called 'images', and I'm trying to make a request to one of them. However, I constantly get the error; Access to fetch at…
Borassign
  • 621
  • 2
  • 7
  • 16
6
votes
3 answers

Why is the certificate generated by Laravel Valet no longer valid in chrome?

I've recently updated Chrome to Version 58.0.3029.110 (64-bit). Since updating all of my development sites secured with valet are throwing a ⚠ Not Secure warning in the browser bar and I'm having to manually add exceptions for development…
Luke
  • 3,481
  • 6
  • 39
  • 63
5
votes
2 answers

Valet-PHP installation fails due to syntax errors in .make file

I am following this guide to install valet-plus. Something seems to be wrong in the brew files though. When running the brew install valet-php@7.4 --build-from-source install command, I get the following error: Last 15 lines from…
marks
  • 1,501
  • 9
  • 24
5
votes
0 answers

Laravel Valet - CORS Issue in Mac

I am using laravel valet for virtual host: https://laravel.com/docs/5.7/valet in my mac And i have linked the project and its working fine. But, when I have called an API from frontend (React) App, it throws CORS issue. I have already installed…
Prakash Arul Mani
  • 627
  • 1
  • 7
  • 12
5
votes
1 answer

Valet: 502 bad gateway when running test.dev on a mac, laravel, php install

I installed locally php71 with fpm on a mac. Then got valet working when going to 'ping anyting.dev'. Then went into directory 'PHP_Apps' where I have all my php apps installed and ran 'valet park' in that directory. Inside it I created a 'test'…
Robert Brax
  • 6,508
  • 12
  • 40
  • 69
4
votes
2 answers

Fresh Valet install not pinging .test

I'm trying to get Valet running on a new MacBook Pro running macOS 12.3. Homebrew, PHP, and Composer are all installed just fine and functioning (to the extent of my knowledge). However, once I installed Valet and tried to ping foobar.test it's not…
scferg5
  • 2,003
  • 5
  • 22
  • 28
4
votes
1 answer

Install of Laravel Valet with Composer is giving a Command not Found error in Mac OS

Currently, I am in the process of installing Laravel Valet for the purpose of using it to locally develop with Kirby CMS. I am following these instructions, once I try to install Valet I get a "command not found" error. After looking at other…
Sam Taylor
  • 41
  • 1
  • 2
4
votes
4 answers

Valet installed for laravel, but why isn't dnsmasq resolving correctly?

I've installed valet for laravel using homebrew on my mac (Mojave). According to laravel's documentation I should now be able to ping *.test, but when I keep getting the following error: ping:cannot resolve foobar.test: Unknown host It looks like…
Urbycoz
  • 7,247
  • 20
  • 70
  • 108
1
2
3
18 19