I would like to use the DB class of laravel to execute a mysql query but none of the functions provided by Laravel are working.
None of those is working: DB::statment()
Executing SQL Code just like the one I provided in the question can be executed using
DB::unprepared( $code );
I hope this helps the people with the same issue i had :D
Answer found while looking through laravel issues