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

bdietz.true2jesus@yahoo.com's avatar

Jetstream, inertia, vue... no routes created for Log in or Register

I've installed Jetstream following the instructions on the Laravel Jetstream Installation page:

composer create-project laravel/laravel mysitename

cd mysitename

composer require laravel/jetstream

php artisan jetstream:install inertia --ssr

npm install

npm run build

php artisan migrate

There are no routes created for "Log in" nor "Register." They are dead links.

Am I doing something wrong?

0 likes
3 replies
LaryAI's avatar
Level 58

It is possible that the routes for "Log in" and "Register" were not generated during the Jetstream installation process. To generate these routes, run the following command:

php artisan jetstream:install inertia --ssr --teams

This command will generate the necessary routes for authentication and team management. After running this command, you should see the "Log in" and "Register" links working properly.

If the issue persists, try clearing your application cache by running the following command:

php artisan cache:clear

If the issue still persists, try running the following command to generate the routes manually:

php artisan route:list

This will display a list of all registered routes in your application. Look for the routes related to authentication and team management and ensure that they are present. If they are not present, you may need to manually add them to your routes file.

bdietz.true2jesus@yahoo.com's avatar

I did as suggested and no joy... I deleted the project and recreated it and the same thing...

php artisan route:list however displays the following:

GET|HEAD login ..................................................................... login › Laravel\Fortify › AuthenticatedSessionController@create POST login .............................................................................. Laravel\Fortify › AuthenticatedSessionController@store POST logout .................................................................. logout › Laravel\Fortify › AuthenticatedSessionController@destroy GET|HEAD register ..................................................................... register › Laravel\Fortify › RegisteredUserController@create POST register ................................................................................. Laravel\Fortify › RegisteredUserController@store

bdietz.true2jesus@yahoo.com's avatar
Level 1

For anyone else... this is an nginx problem. Here is my config if it helps anyone:

    server {

    listen 80 default_server;
    listen [::]:80 default_server;
    include /etc/nginx/mime.types;
    root /var/www/html/public;
    index index.php index.html index.htm;
    error_log  /var/log/nginx/error.log;
    access_log /var/log/nginx/access.log;
    server_name <yoursite name>;
    autoindex off;
    try_files $uri $uri/ /index.php?$query_string;
    gzip_static on;

    location = /favicon.ico {
            access_log off;
            log_not_found off;
    }
    location = /robots.txt {
            access_log off;
            log_not_found off;
     }

    # pass the PHP scripts to FastCGI server listening on php-app:9000
    # My PHP is running in a container ...

    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass app:9000;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_param PATH_INFO $fastcgi_path_info;
    }
    }

Please or to participate in this conversation.