eastwest/eloquent-to-raw-sql

This is my package EloquentToRawSql

v1.0.1 2021-07-24 17:55 UTC

This package is auto-updated.

Last update: 2024-11-16 07:15:07 UTC


README

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