Someone please help me! How Do I render the records of a DB using pagination? When I tried using this code based on the tutorial I'm using I'm getting this error below. I'd thought the results is a method in Paginate class.
<div id="questions">
<h2>Unsolved Questions</h2>
@if(!$questions->results)
<p>No questions have been asked</p>
@else{
<ul>
@foreach($questions->results as $question)
<li>{!! e($question->question) !!}</li>
@endforeach
</ul>
{!! $questions->links !!}
}
@endif
</div>
Aucun commentaire:
Enregistrer un commentaire