企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
路由: ``` Route::get('student/urlTest',['as'=>'urltest','uses'=>'StudentController@urlTest']); //Route::get('student/urlTest',['uses'=>'StudentController@urlTest'])->name('url'); ``` ***** ``` <a href="{{url('student/urlTest')}}">url()通过路由地址来生成url</a> <p> <a href="{{route('urltest')}}">route()通过路由的别名来生成url,这个比较方便</a> </p> <p> <a href="{{action('StudentController@urlTest')}}">action()通过控制吕和方法名来生成url,比较麻烦</a> </p> ```