Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<?php
use Faker\Guesser\Name;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
//后台首页路由
Route::get('/admin/home',function(){
return view();
});
//查询统计路由
Route::get('/admin/home/statistics',function(){
dd('获取查询统计信息表');
})->name('admin.statistics');
//查询男女比例
Route::get('/admin/home/proportion',function(){
dd('查看男女比例情况');
})->name('admin.proportion');
//查看今日注册量
Route::get('admin/home/volume',function(){
dd('今日注册会员信息和数量');
})->name('admin.volume');
//统计今日流水
Route::get('admin/home/flowing',function(){
dd('统计今日流水');
})->name('admin.flowing');
// //网站管理路由
// //获取管理员信息
Route::get('admin/home/administrators',function(){
dd('获取管理员信息列表'); })->name('admin.administrators');
// //修改管理员密码
Route::patch('admin/home/administrators/password/{$password}',function($password){
dd('修改'.$password);
})->name('admin.administrators.password');
// //绑定消息通知微信
Route::put('admin/home/administrators/send/{user}',function($user){
dd('发送一条微信给'.$user);
})->name('admin.administrators.send');
//对象管理路由
Route::get('/admin/home/user',function(){
dd('显示所有会员信息');
})->name('admin.user');
//会员修改路由
Route::get('/admin/home/user/edit/{id}',function(){
dd('显示会员修改页面');
})->name('admin.user.edit');
//执行修改路由
Route::put('/admin/home/user/update/{id}',function($id){
dd('执行'.$id.'这一条会员修改信息');
})->name('admin.user.update');
//删除会员信息路由
Route::delete('/admin/home/user/delete/{id}',function($id){
dd('执行删除会员功能');
})->name('admin.user.delete');
//添加会员信息
Route::post('/admin/home/user/add',function(){
dd('接受会员信息');
});
//权限管理路由
//设置权限
Route::get('admin/home/user/jurisdiction/{id}',function($id){
dd('设置'.$id.'的权限');
})->name('admin.user.jurisdiction');
//查看已有权限
Route::get('admin/home/user/jurisdiction/see/{id}',function($id){
dd('查看'.$id.'的权限');
})->name('admin.user.see');
//订单管理
Route::get('admin/home/order',function(){
dd('查看订单');
})->name('admin.order');
//统计订单
Route::get('admin/home/order/statistics',function(){
dd('统计订单');
})->name('admin.order.statistics');
//设置问题
Route::get('admin/home/trouble/set',function(){
dd('设置问题');
})->name('admin.trouble.set');
//问题查询
Route::get('admin/home/trouble',function(){
dd('查看问题');
})->name('admin.trouble');