Answers for "to bindings in query laravel"

PHP
1

laravel bindings query

$query = DB::table('table')->whereIn('some_field', [1,2,30]);

$sql = $query->toSql();

$bindings = $query->getBindings();
Posted by: Guest on September-15-2020
0

eloquent to sql with bindings

\App\User::where('age', '18')->dump();
\App\User::where('age', '18')->dd();
Posted by: Guest on May-16-2021

Code answers related to "to bindings in query laravel"

Browse Popular Code Answers by Language