Checking what query is run with eloquent

If you want to see what is run in the database use dd(DB::getQueryLog()) to see what queries were run.

Related Posts


Using WhereIn

Updating multiple rows

Using Like

Using orWhere

What is Query Builder?

Using "with" in eloquent query

Getting last inserted id

Selecting last row of a table

Using parameters in find() method

Using local scope in eloquent

Using global scope in eloquent