dimanche 29 mars 2020

Laravel: Calling paginate() inside a blade?

I have access to a collection called $files inside my blade. I am paginating and setting it to $allFiles.

<?php $allFiles = $files->paginate(12); ?>

In the blade beneath that, when I call:

<div>
   
</div>

, I am getting the error call to a member function links() on array. I am not sure what I am doing wrong.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QSICyi
via IFTTT

Aucun commentaire:

Enregistrer un commentaire