'update 'table' set is_available = 0 where id_restaurant = 303 (and weekday = ? or id = ? )'
$weekday = $request->input('weekday', '');
$table = $request->input("id", '');
//Query em construção
DB::table('table')
->where('id_restaurant', $this->restaurantId)
->update(['is_available' => 0]);
Parameters between parentheses are optional, when the weekday and id parameters do not exist I want to update the table where the id_restaurant is equal to 303 how to construct this query in Laravel?