How to write normal sql queries inside controller in laravel

Solution:

If you want to execute raw SQL rather than using a query builder, you can try:

$results = DB::select("SELECT * ..")

More here: https://laravel.com/docs/5.8/database#running-queries