xxxxxxxxxx
$floatValue = 4.5;
echo intval($floatValue) //returns 4
$floatValue = 4.4;
echo intval($floatValue) //returns 4
$floatValue = 4.5;
echo round($floatValue) //returns 5
$floatValue = 4.4;
echo round($floatValue) //returns 4
xxxxxxxxxx
$id = $user[0]->id;
$int = (int)$id;
$is a string it convert into the in the by last command
xxxxxxxxxx
$id = DB::table('leave_encash_approval')
->select('id')
->where('company_id',$request->subCompanyId)
->where('year',$request->year)
->get();