kognitif's avatar

Pagination With An Array

Hi. I have a problem with pagination. im getting rows with a loop;

    $gelenBolum=array();
        foreach ($tercih->gelen() as $gelenid) {
            $gelenA=\App\KayitLisans::where(['boid' => $gelenid])->first();
                
            if($gelenA!=null)
            {
                $gelenB=$gelenA['attributes'];
                $gelenB['taban_puan'][3]=".";
                $gelenB['tavan_puan'][3]=".";
                $gelenA['attributes']=$gelenB;

                $gelenBolum[]=$gelenA;
            }
        }

so i need paginate $gelenBolum array. i didnt use pagination before. so i have not even the slightest idea how to do this.

0 likes
1 reply

Please or to participate in this conversation.