laravel 框架

// 路由访问控制器方法
// Route::get('/','Intt@index');  //get方法
//Route::Post('/','Inttx@index');   //post方法
// 使用多个方法
//Route::match(['post','get'],'/','Intt@index');
// 使用所有方法
//Route::any('/','Intt@index'); 
// 路由别名
// Route::any('/','Intt@index')->name('shouye');
// // 使用route获取地址
// Route::any('/tz',function(){
//     return redirect()->route('shouye');
// }) ;
//路由组
// Route::group(['prefix'=>'admin'],function(){
//     Route::any('/index','Intt@a');
//     Route::any('/user','Intt@b');
// });
// 加载视图文件
// Route::any('/view',function(){
//     return view('welcome');
// });

posted on 2020-07-17 16:57  vermouthmo  阅读(91)  评论(0)    收藏  举报

导航