Skip to content

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

License

Notifications You must be signed in to change notification settings

jannejava/eloquent-to-raw-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages