1$num = "3.14";
2$int = (int)$num;//string to int
3$float = (float)$num;//string to float
1$id = DB::table('leave_encash_approval')
2 ->select('id')
3 ->where('company_id',$request->subCompanyId)
4 ->where('year',$request->year)
5 ->get();