当前位置:网站首页>Laravel routing settings
Laravel routing settings
2022-04-23 05:19:00 【klx2545845553】
What is routing ?
route (routing) When grouping from source to destination , A process that determines the network scope of an end-to-end path .
In the website , Route is URL The correspondence between the address and the real resource .- Basic routing
The most basic Laravel Route accepts one URI And a closure , It provides a very simple and expressive way to define routing and behavior , Without the need for complex routing profiles :
use Illuminate\Support\Facades\Route;
Route::get('/greeting', function () {
return 'Hello World';
});
Route::get('/admin/user/33',function(){
return 'Hello World';
});
The address is http://laravel.test.index/admin/user/33 When , Output section hello world written words
版权声明
本文为[klx2545845553]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220547045789.html
边栏推荐
- Where, on when MySQL external connection is used
- Semi synchronous replication of MariaDB
- Using PHP post temporary file mechanism to upload arbitrary files
- Devops life cycle, all you want to know is here!
- Summary of R & D technology
- 如何在Word中添加漂亮的代码块 | 很全的方法整理和比较
- Graphics. Fromimage reports an error "graphics object cannot be created from an image that has an indexed pixel..."
- Grpc long connection keepalive
- Musk and twitter storm drama
- Basic theory of Flink
猜你喜欢
The WebService interface writes and publishes calls to the WebService interface (I)
Blender程序化地形制作
Servlet3 0 + event driven for high performance long polling
MySQL external connection, internal connection, self connection, natural connection, cross connection
JS Array常见方法
数字化转型失败,有哪些原因?
《2021年IT行业项目管理调查报告》重磅发布!
MySQL foreign key constraint
C test calls the paddlesharp module to recognize pictures and words
Live delivery form template - automatically display pictures - automatically associate series products
随机推荐
Collaboration future object and concurrent futures
Semi synchronous replication of MariaDB
WTL 自绘控件库 (CQsCheckComboxBox)
Flip coin (Blue Bridge Cup)
Nacos source code startup error report solution
Three of three JS (WEB GL) model deletion / scene emptying / simple sorting of memory release
phphphphphphphp
mariadb数据库的主从复制
何时适合进行自动化测试?(下)
Jupyter notebook crawling web pages
Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
MySQL basics 3
Study notes: unity customsrp-11-post processing --- bloom
node中的redis使用--ioredis
Where, on when MySQL external connection is used
egg测试的知识大全--mock、superTest、coffee
Chapter I overall project management of information system project manager summary
Summary of MySQL knowledge points
In aggregated query without group by, expression 1 of select list contains nonaggregated column
Let the LAN group use the remote device