Laravel output sql


In eloquent, its as simple as

 

->getQuery()->toSql()

 

for example User::find(1)->getQuery()->toSql()

Like it.? Share it:
Tags:

Comments are closed.