进阶学习
Laravel 进阶版
Route
Route::get()
Route::post()
Route::put()
Route::delete()
Route::any()
Route::match(['get','post'],'index'mfunction(){})
Route::resource()
单个
Route::get('task/read/{id}',[TaskController::class,"read"])->where('id','[0-9]+');
多个
Route::get('task/read/{id}',[TaskController::class,"read"])->where(['id' => '[0-9]+', 'name' => '[a-z]+']);