Laravel - Pagination - Appending Hash Fragments
If you need to append a "hash fragment" to URLs generated by the paginator, you may use the fragment
method. For example, to append #users
to the end of each pagination link, you should invoke the fragment
method like so:
$users = User::paginate(15)->fragment('users');