Tuesday, March 21, 2017

how can use select column as select db and compare with variable

$query-Where(function ($q) use($sSearch) { 
  $q->select(DB::raw('(compaign_schedules.price + (compaign_schedules.price * compaigns.tax/100))'); }, 'LIKE','%'.$sSearch.'%')  );   

how can use select column as select db and compare with variable



via ravi

Advertisement