Solution:
You can useĀ raw expression
DB::table('holiday_type')
->select(DB::raw('holiday_type.id, holiday_type.name as text'))
->whereRaw('MOD(id, 2) = 0')
->get();
Solution:
You can useĀ raw expression
DB::table('holiday_type')
->select(DB::raw('holiday_type.id, holiday_type.name as text'))
->whereRaw('MOD(id, 2) = 0')
->get();