Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel print query with parameters

$query = str_replace(array('?'), array(''%s''), $builder->toSql());
$query = vsprintf($query, $builder->getBindings());
dump($query);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #print #query #parameters
ADD COMMENT
Topic
Name
3+8 =