Now, in the same fashion, let's generate a Controller for the login mechanism:
php artisan make:controller Api/V1/Auth/LoginController
This will be the new route, in the routes/api.php file:
Route::post('auth/login', Auth\LoginController::class);
Again, the route prefix and Controller namespace will come automatically from the other logic we've discussed earlier, for RegisterController.