I've tried everything and cannot get my laravel pagination LINKS to work. When i view the page source, all links are there, and in page source, they work when i click on them. In blade view, clicking the link does nothing. The links buttons are at the bottom of the page in view. In view, I can type in the address bar user?page=2, etc., and it works. The href links in page source show http://127.0.0.1/user?page=2, etc. My debugger shows the correct link when i click the button in view. .htaccess is correct according to installation instructions. HELP!!! Very simple controller to view with no eloquent or model. ?????
In your description the url does not have a port declaration, in the code port 8000 is included in all the links - is there a mismatch between your environment and config?
Page does not reload. Clicking the link does nothing. dd($users); shows the correct amount of records. Basic controller. $users = DB::table(‘users’)->paginate(5); the page loads correctly. I can type /users?page=2 in the address bar and it works. The links buttons are not.
That’s my local server address. Production still does not work. Like I said, page loads correctly and records are correct, just {{ $users-> links }} is not working, but shows on blade.view
Problem solved. I had a modal on my blade file that had a page-link class that was conflicting with the paginate page-link class. i changed the modal class name and the page links work as they should. Thanks for all suggestions.