数据表和路由设计应该要有层级吗?
数据库设计 比如我的收藏和我的关注数据表
应该直接用 pe_follows 和 pe_collections
还是需要设计成 pe_user_follows 和 pe_user_collections
有没有什么标准或者常用的规范喃?
比如路由 我的收藏列表 应该直接用 /collections 还是应该 user/collections
//我的收藏
Route::match(['post', 'get'], 'collections',[UserController::class, 'collections'])->name('collections');
//我的收藏
Route::match(['post', 'get'], 'collections',[UserController::class, 'user/collections'])->name('user.collections');
推荐文章: