Blogger Information
Blog 23
fans 0
comment 0
visits 18964
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
婚恋网后台管理路由
手机用户1617360551
Original
739 people have browsed it

婚恋网后台管理路由


  1. <?php
  2. use Faker\Guesser\Name;
  3. use Illuminate\Support\Facades\Route;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | contains the "web" middleware group. Now create something great!
  12. |
  13. */
  14. Route::get('/', function () {
  15. return view('welcome');
  16. });
  17. //后台首页路由
  18. Route::get('/admin/home',function(){
  19. return view();
  20. });
  21. //查询统计路由
  22. Route::get('/admin/home/statistics',function(){
  23. dd('获取查询统计信息表');
  24. })->name('admin.statistics');
  25. //查询男女比例
  26. Route::get('/admin/home/proportion',function(){
  27. dd('查看男女比例情况');
  28. })->name('admin.proportion');
  29. //查看今日注册量
  30. Route::get('admin/home/volume',function(){
  31. dd('今日注册会员信息和数量');
  32. })->name('admin.volume');
  33. //统计今日流水
  34. Route::get('admin/home/flowing',function(){
  35. dd('统计今日流水');
  36. })->name('admin.flowing');
  37. // //网站管理路由
  38. // //获取管理员信息
  39. Route::get('admin/home/administrators',function(){
  40. dd('获取管理员信息列表'); })->name('admin.administrators');
  41. // //修改管理员密码
  42. Route::patch('admin/home/administrators/password/{$password}',function($password){
  43. dd('修改'.$password);
  44. })->name('admin.administrators.password');
  45. // //绑定消息通知微信
  46. Route::put('admin/home/administrators/send/{user}',function($user){
  47. dd('发送一条微信给'.$user);
  48. })->name('admin.administrators.send');
  49. //对象管理路由
  50. Route::get('/admin/home/user',function(){
  51. dd('显示所有会员信息');
  52. })->name('admin.user');
  53. //会员修改路由
  54. Route::get('/admin/home/user/edit/{id}',function(){
  55. dd('显示会员修改页面');
  56. })->name('admin.user.edit');
  57. //执行修改路由
  58. Route::put('/admin/home/user/update/{id}',function($id){
  59. dd('执行'.$id.'这一条会员修改信息');
  60. })->name('admin.user.update');
  61. //删除会员信息路由
  62. Route::delete('/admin/home/user/delete/{id}',function($id){
  63. dd('执行删除会员功能');
  64. })->name('admin.user.delete');
  65. //添加会员信息
  66. Route::post('/admin/home/user/add',function(){
  67. dd('接受会员信息');
  68. });
  69. //权限管理路由
  70. //设置权限
  71. Route::get('admin/home/user/jurisdiction/{id}',function($id){
  72. dd('设置'.$id.'的权限');
  73. })->name('admin.user.jurisdiction');
  74. //查看已有权限
  75. Route::get('admin/home/user/jurisdiction/see/{id}',function($id){
  76. dd('查看'.$id.'的权限');
  77. })->name('admin.user.see');
  78. //订单管理
  79. Route::get('admin/home/order',function(){
  80. dd('查看订单');
  81. })->name('admin.order');
  82. //统计订单
  83. Route::get('admin/home/order/statistics',function(){
  84. dd('统计订单');
  85. })->name('admin.order.statistics');
  86. //设置问题
  87. Route::get('admin/home/trouble/set',function(){
  88. dd('设置问题');
  89. })->name('admin.trouble.set');
  90. //问题查询
  91. Route::get('admin/home/trouble',function(){
  92. dd('查看问题');
  93. })->name('admin.trouble');




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