Blogger Information
Blog 20
fans 0
comment 0
visits 10862
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
定义网站相关路由内容
麦兜的故事
Original
504 people have browsed it

定义网站相关路由内容

  1. Route::get('/', function () {
  2. return view('welcome');
  3. });
  4. //后台首页路由
  5. Route::get('/admin/home',function (){
  6. //显示首页页面
  7. return view();
  8. });
  9. //网站管理
  10. Route::get('/admin/home/set/edit/{id}',function ($id){
  11. //修改管理员登录密码
  12. })->name('admin.set.edit');
  13. Route::put('/admin/home/set/update/{id}',function ($id){
  14. //执行设置修改管理员登录密码
  15. })->name('admin.set.update');
  16. Route::get('/admin/home/wechat/{id}',function ($id){
  17. //绑定管理员消息通知微信
  18. })->name('admin.wechat.edit');
  19. Route::put('/admin/home/wechat/update/{id}',function ($id){
  20. //执行绑定管理员消息通知微信
  21. })->name('admin.wechat.update');
  22. //权限管理
  23. Route::get('/admin/home/power/edit/{id}',function ($id){
  24. //设置权限
  25. })->name('admin.power.set');
  26. Route::put('/admin/home/power/uptate/{id}',function ($id){
  27. //执行设置权限
  28. })->name('admin.power.update');
  29. Route::get('/admin/home/power',function (){
  30. //查看已有权限
  31. })->name('admin.home.power');
  32. //订单管理
  33. Route::get('/admin/home/order',function (){
  34. //查看所有订单
  35. })->name('admin.order');
  36. Route::get('/admin/home/order/count',function (){
  37. //订单统计
  38. })->name('admin.order.count');
  39. //问题管理
  40. Route::get('/admin/home/question',function (){
  41. //查看所有问题
  42. })->name('admin.question');
  43. Route::post('/admin/home/question/add',function (){
  44. //添加问题
  45. })->name('admin.question.add');
  46. Route::get('/admin/home/question/edit/{id}',function ($id){
  47. //修改问题
  48. })->name('admin.question.edit');
  49. Route::put('/admin/home/question/update/{id}',function ($id){
  50. //执行设置问题
  51. })->name('admin.question.update');
  52. Route::delete('/admin/home/question/del/{id}',function ($id){
  53. //删除问题
  54. })->name('admin.question.del');
  55. //查询统计
  56. Route::get('/admin/home/vital/ratio',function (){
  57. //查询男女比例
  58. })->name('admin.vital.ratio');
  59. Route::get('/admin/home/vital/marry',function (){
  60. //查看匹配成功率
  61. })->name('admin.vital.marry');
  62. Route::get('/admin/home/vital/toreg',function (){
  63. //查看今日注册
  64. })->name('admin.vital.toreg');
  65. Route::get('/admin/home/vital/Run',function (){
  66. //查看今日流水
  67. })->name('admin.vital.Run');
  68. //对象管理
  69. Route::get('/admin/home/user',function (){
  70. //查看所有的会员
  71. })->name('admin.user');
  72. Route::get('/admin/home/user/edit/{id}',function ($id){
  73. //修改会员
  74. })->name('admin.user.edit');
  75. Route::put('/admin/home/user/update/{id}',function ($id){
  76. //执行修改会员
  77. })->name('admin.user.update');
  78. Route::delete('/admin/home/user/del/{id}',function ($id){
  79. //删除会员
  80. })->name('admin.user.del');
  81. Route::post('/admin/home/user/add',function (){
  82. //添加会员
  83. })->name('admin.user.add');
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post