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