laravel 5.4 pagination links() method returns empty html string :
controller :
$articleBlogs = ArticleBlog::orderBy('created_at', 'desc')->paginate(10);
view :
{{ $articleBlogs->links() }}
output of : dd($articleBlogs)
LengthAwarePaginator {#216 ▼
#total: 3
#lastPage: 1
#items: Collection {#211 ▼
#items: array:3 [▶]
}
#perPage: 10
#currentPage: 1
#path: "http://localhost/Asmoza/prestakpi-laravel/public/blog"
#query: []
#fragment: null
#pageName: "page"
}
output of : dd($articleBlogs->links());
HtmlString {#208 ▼
#html: ""
}
I tried :
php artisan vendor:publish --tag=laravel-pagination
as described in the documentation, no effect
Any ideas ?
EDIT :
{{ $articleBlogs->render() }}
is same result