当前位置:网站首页>laravel 8.4 路由问题,结尾处是编辑器左侧对照表,小白可看懂
laravel 8.4 路由问题,结尾处是编辑器左侧对照表,小白可看懂
2022-06-23 03:50:00 【mercenary's L】
1:配置环境变量,在下图的最后加上,系统变量后面加这个地址:E:\phpstudy_pro\Extensions\php\php7.3.4nts

启动laravel:在命令行输入 php artisan 和 php artisan serve 看到欢迎页面
(前者是看laravel的版本,后者是查看本地服务器的端口)
2 配置路由:(下面是路由写法)
Route::get('/admin/login', '\App\Http\Controllers\admin\login\[email protected]');
3.控制器链接前端页面: return view('admin/login/index');
后面还可以加一个参数链接:return view('admin/login/index',compact("")); 里面的值可以传到前端页面。下面全是传参方式
'data'=>$data;(传参方式)




边栏推荐
猜你喜欢

photoshop PS 查看像素坐标、像素颜色、像素HSB颜色

How does flutter achieve different zoom animation effects

Analysis on the current situation of the Internet of things in 2022

There is a problem with redis startup

【一起上水硕系列】Day Three - preview4

Getting started with tensorflow

Xiaojinwei, chairman of Chenglian Technology: implement the national strategy of data economy and lead the development of new consumption in the digital era!

x24Cxx系列EEPROM芯片C语言通用读写程序

Volatile and threads

Halcon glue line detection - template matching, pose transformation, glue width, glue continuity detection
随机推荐
Pta:7-67 friend is very simple 2016final
Pta:7-37 student number analysis
Zhongang Mining: the demand for fluorite in the new energy and new material industry chain has increased greatly
P1347 sorting (TOPO)
OpenJudge NOI 1.13 50:数根
深度学习 TensorFlow入门
How to ensure application security
Redis启动有问题
抖音x-bogus和_signature参数分析
Introduction to deep learning
Pta:7-85 data spacing (overload + function template)
Pta:7-60 pet growth
svg d3. JS generate tree tree view
Deploying Apache pulsar on kubesphere
一篇文章学会er图绘制
[acnoi2022] no way without guessing
深度学习 简介
【二叉树】二叉树的完全性检验
PTA:7-85 数据的间距问题(重载+函数模板)
32单片机一个变量多个.c里使用