search

Home  >  Q&A  >  body text

How to solve simple paging in laravel?

One click paging connection

http://127.0.0.1/demo/public/index.php/?page=1

Found that the demo is gone

http://127.0.0.1/public/index.php/?page=2  

Is it because the routing is written incorrectly? Default route:

Route::get('/', 'indexController@index');

Routing was added later

Route::get('?page={id}', function($id)
{
    
});

It’s solved. Doesn’t this way of writing have any impact?

PHPzPHPz2818 days ago415

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-16 16:57:05

    Use php artisan serve to start the project.

    reply
    0
  • Cancelreply