laravel1

常明亮
2023-12-01
 
Route::get('/',function(){
return view ['welcome'];
});
Route::get('/user',function(){
return "hello world!";
});
Route::redirect('/user1','user');
Route::get('/user/{id?}',function($id=1){
dd($id);
})->where('id','[0-9]{2}[0-9|x]');
Route::group(['post','get'],function(){
	Route::get('user',function(){
	return 'roote by get';
});
Route::post('user',funtion(){
	return 'route by post';
	});
});
 类似资料:

相关阅读

相关文章

相关问答