To register, once registered, credentials are verified and token based back and forth communication is used.
If using Sanctum read all three uses it has.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
this is a route of breeze API only starter kit fresh installation:
Route::post('/register', [RegisteredUserController::class, 'store']) ->middleware('guest') ->name('register');
all other routes are like this.
as you can see it has the 'guest' middleware, which is typically used to redirect an authenticated user to another route if he tried to access register routes in stateful context, but when using it in stateless context it just lets you login at any time, so what is it exactly used for?
Please or to participate in this conversation.