I have 18 records that are sorted based on specific column.
the first 5 records must be shown at first, and when click the specific button another records must be shown.
how can I do it ? I should use javascript?
it is my query...
public function theMostImportant()
{
// return CategoryActivity::all()->sortByDesc("priority")->take(5);
return CategoryActivity::all()->sortByDesc("priority");
}
in my view , my code is like this:
@foreach($priorityProjectCategory as $importantCategory)
--}}
<li><a href="#" data-filter="."
class="current"><sup>
</sup></a></li>
@endforeach
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire