一點選分頁連線
http://127.0.0.1/demo/public/index.php/?page=1
發現demo沒有了
http://127.0.0.1/public/index.php/?page=2
是因為路由寫的不對嗎?預設路由:
Route::get('/', 'indexController@index');
後來路由增加了
Route::get('?page={id}', function($id)
{
});
就解決了 這種寫法沒影響吧?
用 php artisan serve 方式啟動專案。