Answers for "orwhere laravel in raw sql"

SQL
0

DB raw with where condition in laravwel

$someVariable = Input::get("some_variable");

$results = DB::select( DB::raw("SELECT * FROM some_table WHERE some_col = '$someVariable'") );
Posted by: Guest on October-26-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language