Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Frostist's avatar

Laravel Jetstream - login / signup no response

Hi all!

I have been using Laravel heard on my Mac with a Laravel jetstream install, once I did a few changes I moved to a server, however while everything worked visually, the functionality of the site was gone, clicking on login took me to the login page, but when entering details, and clicking login, It would just reload the page.

I did a fresh install of Laravel jetstream on my server, same issue. So either it's something to do with nginx or something database related.

If anyone has any idea what I need to do, please let me know!

Thanks!

0 likes
2 replies
Himmat's avatar

@willfroz

Check Logs: Laravel logs errors to storage/logs. Check the log files for any error messages that might indicate what's going wrong. Look specifically at the laravel.log file for any PHP errors or Laravel-specific issues.

Nginx Configuration: Check your Nginx configuration to ensure it's correctly routing requests to your Laravel application. Make sure that Nginx is configured to pass requests to the correct public directory (public by default in Laravel).

1 like
Frostist's avatar

@Himmat Shortly after posting my question, I went onto my Laravel public site and opened my console on safari, saw that two things were giving 404 errors!!!

1st was this Livewire.js was returning a 404 when the page was loading, ended up finding this resource: https://livewire.laravel.com/docs/installation I fixed that by pasting the following in my nginx default file:

location = /livewire/livewire.js {
    expires off;
    try_files $uri $uri/ /index.php?$query_string;
}

But now I still have another 404 return which is https://mysite/register and https://mysite/login on the page respectively.

I don't know why?

I used the code given on the Laravel page for deployment (below) but I don't see why this should happen on a fresh install?

server {
    listen 80;
    listen [::]:80;
    server_name example.com;
    root /srv/example.com/public;
 
    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
 
    index index.php;
 
    charset utf-8;
 
    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
 
    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }
 
    error_page 404 /index.php;
 
    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }
 
    location ~ /\.(?!well-known).* {
        deny all;
    }
}

Please or to participate in this conversation.