I\'m getting the following error
(1/1) ErrorException compact(): Undefined variable: operator
This is my line of code
$pos
If you are not able to upgrade your Laravel, you just could change your Query to RAW query, it worked for me.