Larave per halaman int mengembalikan string
// Pass int value to ->paginate()
$per_page = intval(request()->get('per_page'));
return Data::all()->paginate($per_page);
Almabek