I was going to start a new post for a new login app with laravel but it turns out you can use breeze, check it out:

Resource: https://www.webune.com/forums/laravel-two-commands-to-start-a-new-api-project.html

To add Backend login capabilities to  your Laravel app, add the following code and files:

routes/api.php

use App\Http\Controllers\Api\AuthController;
 
Route::post('/signup', [AuthController::class, 'signup']);
Route::post('/login', [AuthController::class, 'login']);