How to execute raw queries with Laravel 5.1?

后端 未结 3 373
执念已碎
执念已碎 2020-12-01 00:27

So I have this tiny query to run on my DB and it works fine in MySQL Workbench. Basically, a SELECT with LEFT JOIN and UNION with LEFT JOIN again.

SELECT
            


        
3条回答
  •  抹茶落季
    2020-12-01 01:16

    you can run raw query like this way too.

    DB::table('setting_colleges')->first();
    

提交回复
热议问题