laravel orWhere
snippet in php

laravel where like

user2034

$users = DB::table('users')
                ->where('name', 'like', 'T%')
                ->get();

laravel orWhere

user1905

$camps = $field->camps()->where('status', 0)->where(function ($q) {
    $q->where('sex', Auth::user()->sex)->orWhere('sex', 0);
})->get();

where like laravel

user7518

User::query()
   ->where('name', 'LIKE', "%{$searchTerm}%") 
   ->orWhere('email', 'LIKE', "%{$searchTerm}%") 
   ->get();

reference:
https://freek.dev/1182-searching-models-using-a-where-like-query-in-laravel

laravel where and where

user5276

Table::where('Column', Value)->where('NewColumn', Value)->get();