I'm getting a bad URL generated by sendResetLinkResponse controller in laravel 5.8 having the domain twice.
But it should be
The APP_URL is set to
APP_URL=domain.org
I use a custom config to be able to have as endpoint api.domain.org instead of www.domain.org/api
My configuration is:
protected function mapApiRoutes() {
Route::domain('api.' . env('APP_URL'))
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
How can I fix it?