Skip to content

Latest commit

 

History

History
24 lines (10 loc) · 317 Bytes

README.md

File metadata and controls

24 lines (10 loc) · 317 Bytes

Eloquent toRawSQL

Output the full, unparameterized query in Laravel so you can paste it right into your database GUI.

Example:

$user = User::where('id', 1)->toRawSql();


dump($user);

// "select * from `users` where `id` = 1"

How to install

composer require eastwest/eloquent-to-raw-sql