I can logout other devices but it only work on default guard. When i change default guard, it work correctly.
Can you give us some more context with code examples if this is an issue/bug with the framework itself?
If this is not an issue or bug with the framework, there are many great community support areas that will likely give you a better answer more quickly:
Laravel Slack (https://larachat.co/)
Laravel.io Forum (https://laravel.io/forum)
Laracasts Forum (https://laracasts.com/discuss)
StackOverflow (http://stackoverflow.com/questions/tagged/laravel)
Thanks!
Can you first please try one of the following support channels? If you can actually identify this as a bug, feel free to report back.
it is not working in laravel 5.7
Auth::logoutOtherDevices($data['password'], 'password');
and
Auth::guard('web')->logoutOtherDevices($data['password'], 'password');
are ok but below code is not working
Auth::guard('custom')->logoutOtherDevices($data['password'], 'password');
@driesvints i can't find any solution or asked question on forums or stackoverflow and i test it with Auth::attempt or Auth::loginUsingId but not working
and i also uncomment this in middlewareGroups AuthenticateSession
and use web middelware in all routes but not working with custom guard
to solve this problem i used this answer
From my side also is not working in laravel 5.7
I have implement with different variations but can't work , Please suggest me any solution thank you
Most helpful comment
it is not working in laravel 5.7
Auth::logoutOtherDevices($data['password'], 'password');and
Auth::guard('web')->logoutOtherDevices($data['password'], 'password');are ok but below code is not working
Auth::guard('custom')->logoutOtherDevices($data['password'], 'password');@driesvints i can't find any solution or asked question on forums or stackoverflow and i test it with Auth::attempt or Auth::loginUsingId but not working
and i also uncomment this in middlewareGroups AuthenticateSession
and use web middelware in all routes but not working with custom guard
to solve this problem i used this answer