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

How do I recover Laravel Valet after attempting to change the TLD from .test to .dev?

I successfully installed valet and had it working. I was able to verify this by successfully accessing my first linked domain testdomain.test. I'm working on my project with another developer. I wanted to change my setup to match his entirely so…
Front_End_Dev
  • 1,205
  • 1
  • 14
  • 24
0
votes
1 answer

Nginx is catching Laravel request errors, or so it seems

I am working in a Laravel Valet php7.4 environment, on a Laravel 7.4 app. With this, I have created a form request that updates a user's bio, with the following validation: 'bio' => ['nullable', 'max:255'] Whenever I put a huge amount of characters…
intergalactisch
  • 109
  • 2
  • 7
0
votes
1 answer

PHP Laravel memory usage increase on Direct Admin server

We have developed Laravel based software, locally tested with Laravel Valet and everything is working fine. One installing on a staging (direct admin) webserver with exactly the same database and code the memory usage dramatically increased. Local…
SvT
  • 5
  • 4
0
votes
1 answer

Laravel Livewire - 502 Bad Gateway

I am using Laravel Valet in my development environment and I came across this error today when sending a post request with Livewire. ~/.config/valet/Log/nginx-error.log: 2020/05/17 10:44:27 [error] 3611#0: *1 upstream sent too big header while…
0
votes
1 answer

How do I view server logs in Laravel?

New to Laravel, coming from Rails. In Rails you start the server via rails serve and then begin seeing the server logs (http requests, db queries, etc). How do I see this in Laravel? I'm using Valet so I don't have to run any command to start the…
nateM
  • 502
  • 4
  • 10
  • 25
0
votes
1 answer

Why is valet-share doesn't add slash to request like local valet do

In local development using valet embedded images can be seen because the path to the storage is appended correctly with slash https://restaurants.test/storage/app/public/34/ic_launcher.png When I'd share the local site with Ngrok via valet share…
0
votes
1 answer

Valet returns 404 not found

I'm trying to get Valet to work but all my sites return 404 - Not found. My project folder is named Webb, inside is a folder named ogge. The path is ~/Desktop/Webb/ogge. Valet is parked in my project folder, the ~/.config/valet/config.json contains…
Oscar
  • 33
  • 3
  • 13
0
votes
1 answer

Every PHP error causes an nginx 500 error instead of showing PHP error data

I get a 502 server error from nginx on every PHP request that has an error in it. This is what shows up in the nginx log for every type of error: [error] 394#0: *7 upstream prematurely closed connection while reading response header from upstream,…
eComEvo
  • 11,669
  • 26
  • 89
  • 145
0
votes
2 answers

Permission denied in ~/.composer/vendor/laravel/valet/server.php

I'm getting this issue with Laravel Valet suddenly: Warning: file_get_contents(/Users/Myself/.config/valet/config.json): failed to open stream: Permission denied in /Users/Myself/.composer/vendor/laravel/valet/server.php on line 60 Warning: Invalid…
eComEvo
  • 11,669
  • 26
  • 89
  • 145
0
votes
1 answer

How to make Axios calls in a local development environment with Nativescript (Vue)?

I am working to develop a Nativescript app that hits a backend API (running Laravel). For development, the app is being served locally using Laravel Valet on jwt9.test. I am having issues with Axios accepting my self-signed certificate. The below…
scott_p
  • 57
  • 11
0
votes
0 answers

Valet with Laravel - Vue is not fully working with it

I have set up my whole project and started valet. In my view at the bottom I import the JS file and use mix for it to reload: The issue comes into play when I try to bind anything, it just does not…
Victor
  • 63
  • 5
0
votes
2 answers

Laravel Valet nginx location regex not working on Mac Catalina

I'm working with Laravel Valet but when adding some regular expression location that works perfectly on forge Linux server, doesn't work for MacOS. It doesn't give any errors just doesn't load any of the right css. The regex is for css/js…
latr.88
  • 849
  • 5
  • 17
0
votes
1 answer

Laravel - 404 Not Found when trying any endpoint

I have just created a Laravel project and testing the first endpoint through Insomnia, however, this always returns 404. In the project directory, I have installed valet and used its URL, which then returns 404 whenever I run a request through…
heyr
  • 5,514
  • 11
  • 34
  • 55
0
votes
1 answer

Setting up Laravel Valet Mysql issues

I am trying to install Laravel Valet on MAcOSX High Sierra. I have followed the instructions on the Valet homepage, installed homebrew, php 7.3, mysql@5.7. I have to use sudo when running brew services start. The error I get is: ERROR 2002 (HY000):…
olv53
  • 63
  • 13
0
votes
2 answers

Should I use homestead for an exact Laravel replication?

My client is running Laravel 5.2 and PHP version 5.6 (all obviously several years old). I tried to clone the git into Valet with relative success in that the application ran but a bunch of pages threw errors which I am certain is due to me running…
Henry
  • 5,195
  • 7
  • 21
  • 34