一、预览
- 
写路由
# 在 aiyouTest/app/Http/routes.php 文件内写路由配置项
 - 
写模板文件
# 在 aiyouTest/resources/views/news/index.blade.php
 - 
地址栏访问
# 访问 t.aiyou.cc/news
 
二、简单流程
- 
写路由
# 在 aiyouTest/app/Http/routes.php 文件内写路由配置项
 - 
创建控制器
# php artisan make:controller NewsController
 - 
写模板
# 在 aiyouTest/resources/views/news/index.blade.php
 - 
地址栏访问
# 访问 t.aiyou.cc/news
 









网友评论