I am using eloquent where has relation in 3 global scopes and these scopes cause a significant performance drop
this query takes about 140 seconds on the server to proces