Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 386 Bytes

EloquentHelpers.md

File metadata and controls

15 lines (9 loc) · 386 Bytes

Eloquent Helpers

Class: Midnite81\Core\Eloquent\Builder

This class allows you to get the query as a string, with its bindings. This is useful for debugging purposes.

Usage

$query = User::where('id', 1)->whereIn('id', $names);

dd(\Midnite81\Core\Eloquent\Builder::getQueries($query));

// select * from `users` where `id` = 1 and `id` in ('John', 'Jane', 'Joe)