Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 laravel 5.7 并想在 url 中隐藏 id。现在我的网址显示像
http://127.0.0.1:8000/add-stock/87
我想隐藏这个身份证号码。有人举例吗?谢谢你们。
根据您的术语“添加库存”,您正在存储数据,因此无需/{id}在 URL 中添加它,并使用 POST 方法。尝试这个:
/{id}
Route::post('/add-stock','StockController@addStOCk');