小白兔晒黑了

导航

 

2020年7月14日

摘要: 三个方法:url() 、action()、route() 都可以跳转 1 路由设置 \routes\web.php Route::any('url',['as'=>'url','uses'=>'StudentController@urlTest']); 2 添加action \app\Http\Co 阅读全文
posted @ 2020-07-14 20:33 小白兔晒黑了 阅读(504) 评论(0) 推荐(0) 编辑
 
摘要: 文件目录结构 父模板 \resources\views\student\section1.blade.php @section('content') content <!-- 1 模板中输出php变量--> <p>{{$name}}</p> <!-- 2 模板中调用php代码--> <p>{{ ti 阅读全文
posted @ 2020-07-14 18:05 小白兔晒黑了 阅读(860) 评论(0) 推荐(0) 编辑
 
摘要: 将整个页面划分成不同的模块, 代码部署: \routes\web.php Route::get('section1',['uses'=>'StudentController@section1']); \app\Http\Controllers\StudentController.php //模板继承 阅读全文
posted @ 2020-07-14 17:10 小白兔晒黑了 阅读(492) 评论(0) 推荐(0) 编辑
 
摘要: 1 路由 \routes\web.php <?php use Illuminate\Support\Facades\Route; /* | | Web Routes | | | Here is where you can register web routes for your applicatio 阅读全文
posted @ 2020-07-14 07:57 小白兔晒黑了 阅读(242) 评论(0) 推荐(0) 编辑