F
Filamentzenepay

Having issues with spa() and https and logout

When put URL::forceScheme('https') in boot() in AppServiceProvider, my panel spa() does not work. But when I remove URL::forceScheme('https') I cannot click Logout. It returns The GET method is not supported for route admin/logout. Supported methods: POST. I found that the logout function send http:// instead so it does not work with https url. Please advise how I can handdle the logout function to work, so I can remove URL::forceSechema('https') #logout #spa #https