My field in table is an array and I want to convert it to an int.
$totalreward = DB::table('bid_packs')
->select('bid_pack_reward_points')->first();
$solve = $totalreward * $qty;
print_r ($solve);
It always prompt this error
Object of class stdClass could not be converted to int