laravel query builder like statement code example
Example 1: laravel where like
$users = DB::table('users')
->where('name', 'like', 'T%')
->get();
Example 2: laravel orWhere
$camps = $field->camps()->where('status', 0)->where(function ($q) {
$q->where('sex', Auth::user()->sex)->orWhere('sex', 0);
})->get();