inertiajs / inertia

Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
https://inertiajs.com
MIT License
6.3k stars 423 forks source link

redirection to /dashboard after login does not work #1838

Closed albertopinilla closed 6 months ago

albertopinilla commented 6 months ago

Version:

Describe the problem:

I just installed Laravel 11 with the laravel new installer, using Laravel Breeze with Inertia.js and Vue 3. After creating the migrations and registering a user, I cannot log in. The exception that occurs is Illuminate\Auth\AuthenticationException: Unauthenticated, even though the credentials are correct. I notice that it makes a GET request to dashboard?%2Fdashboard, but it returns nothing.

Steps to reproduce:

I did a clean installation with laravel new. The strange thing is that if I use a SQLite database, it works, but it doesn't work with MySQL.

driesvints commented 6 months ago

Duplicate of https://github.com/inertiajs/inertia-laravel/issues/609. Please do not post on multiple repos.