Answers for "laravel query builder like"

PHP
0

laravel 8 db like query

$filterData = DB::table('countries')->where('name','LIKE','%'.$term.'%')
                      ->get();
Posted by: Guest on July-15-2021
6

laravel orWhere

$camps = $field->camps()->where('status', 0)->where(function ($q) {
    $q->where('sex', Auth::user()->sex)->orWhere('sex', 0);
})->get();
Posted by: Guest on October-20-2020
8

laravel where like

$users = DB::table('users')
                ->where('name', 'like', 'T%')
                ->get();
Posted by: Guest on May-13-2020

Code answers related to "laravel query builder like"

Browse Popular Code Answers by Language