Pagination in Asgard



  • I used paginate() in eloquent file to get limited items for pagination.

    Then I shown them through view in controller :
    return view('friend::friends', ['current_user' => $user_id, 'locale' => $locale, 'friends' => $oFriendCollection]);

    In blade file, I added :

    {!! $friends->links() !!}

    for showing pagination links. But it caused a problem that Method links does not exist.

    How can I do to make pagination in Asgard?

    Thanks.


  • Global Moderator

    @kyo00710 said:

    links

    I believe you would use {!! $friends->render() !!} instead. Give it a go.


  • admin

    Same way you would in laravel. Asgard is only a laravel application.



  • I have got same issue, refer this article http://laravel.io/forum/11-13-2014-laravel-5-pagination


Log in to reply