我想为我的项目创建模板。在我的项目中,我为所有页面使用了标题和CSS以及js和footer(即page1.blade.php,page2.blade.php等等)。在加载每个页面时,需要更多时间来加载。因此,我需要创建一个通用布局并在内容部分加载内容(即page1.blade.php,page2.blade.php等)。在laravel中创建模板5.3
如何创建主布局并加载page1.blade.php和page2.blade.php等。笔者希望创建链接此
<html>
<head>
<title>Title</title>
</head>
<body>
@section('sidebar')
This is the master sidebar.
@show
<div class="container">
@yield('content')
</div>
</body>
如何创建路线只是延长? – user3386779
您可以在Route.php文件中键入Route :: method('url','Controller @ action')。 但我建议去https://laracasts.com并通过几个初学者系列。 – Henrik