I hereby claim:
- I am therobfonz on github.
- I am therobfonz (https://keybase.io/therobfonz) on keybase.
- I have a public key ASBJqvaB1M2rQsZpzsYWEJ7zxROX1s1LfWaub_fNNzlwKwo
To claim this, I am signing this object:
use Illuminate\Database\Eloquent\Builder; | |
Builder::macro('toRawSql', function(){ | |
return array_reduce($this->getBindings(), function($sql, $binding){ | |
return preg_replace('/\?/', is_numeric($binding) ? $binding : "'".$binding."'" , $sql, 1); | |
}, $this->toSql()); | |
}); | |
// use | |
Model::where('field', 'value)->toRawSql(); |
I hereby claim:
To claim this, I am signing this object: