order by same column twice
asfapps opened this issue · comments
Hi,
It seems like line 29 in Rappasoft\LaravelAuthenticationLog\Listener\LogoutListener causes an error with SQL Server due to a double "order by login_id" statement:
$log = $user->authentications()->whereIpAddress($ip)->whereUserAgent($userAgent)->first();
The double statement is generated by the authentications() function in the AuthenticationLoggable trait, due to it having the latest() function already applied.
I am facing the same issue, is there any solution ?