How Make API with route middleware
how to configuration or make api route with Aut:API,
In the recent version of Laravel, they have moved the auth API into a separate package. You can find this feature in the Laravel Sanctum plugin. Please check the link below for more information about the setup and enhancement.