can not custom logout redirection

hello guys I do all steps like this blog for change redirection of logout: https://filamentphp.com/community/tim-wassenburg-how-to-customize-logout-redirect but i got an error here:
Target class [App\Http\Responses\LogoutResponse] does not exist.
does any one have any idea?
Filament
How To Customize Logout Redirect by Tim Wassenburg - Filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
Solution:
Um. You placed it in app/Responses not app/Http/Responses
Jump to solution
9 Replies
Tieme
Tieme8mo ago
did you add use App\Http\Responses\LogoutResponse; to AppServiceProvider? Or the correct namespace to the LogoutResponse ?
matin rajabi
matin rajabiOP8mo ago
yes 100%
matin rajabi
matin rajabiOP8mo ago
this is my code
No description
No description
Dennis Koch
Dennis Koch8mo ago
Sounds like some issue with caching?
matin rajabi
matin rajabiOP8mo ago
i don't know. if it is about caching how should i solve it?
Dennis Koch
Dennis Koch8mo ago
Try restarting your PHP stuff or your computer if this is local. Maybe try clearing opchache if that's enabled.
matin rajabi
matin rajabiOP8mo ago
hello again. I tried your suggestion but i have error again. do you have any idea?
No description
Solution
Dennis Koch
Dennis Koch8mo ago
Um. You placed it in app/Responses not app/Http/Responses
matin rajabi
matin rajabiOP8mo ago
it works. thanks a lot😃
Want results from more Discord servers?
Add your server