Skip to content
Advertisement

Convert Raw SQL ‘NOT’ IN (too slow) to Laravel Eloquent

I have a running script using Raw SQL in Laravel 5.3 controller which I found it slow and not secure ( as Raw ). If there any way to make it more effecient and convert it to eloquent or Query Builder for Laravel ?

code as below & Thanks !

Advertisement

Answer

I managed to get it working using laravel’s query. Hope it helps others

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement