DB::enableQueryLog();
$mines = Cranks::where([['crank_id', '=', $this->crank_id], ['mine_id', 'like', '%'.$script_value->mine_id.'%'] ])->get();
$querylog = DB::getQueryLog();
dd($querylog);
exit;
This code prints the querylog with bind array and all - How can I get the pure sql, so I can run it in PhpMyAdmin
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2H38pjv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire