Fix "*.master" templates

This commit is contained in:
Pig Fang 2019-12-07 16:39:04 +08:00
parent 61eea2b980
commit 6fc099bb34
3 changed files with 8 additions and 7 deletions

View File

@ -11,7 +11,12 @@ class ViewServiceProvider extends ServiceProvider
{
public function boot(Webpack $webpack)
{
View::composer(['home', '*.base', 'shared.header'], function ($view) {
View::composer([
'home',
'*.base',
'*.master',
'shared.header'
], function ($view) {
$lightColors = ['light', 'warning', 'white', 'orange'];
$color = option('navbar_color');
$view->with([

View File

@ -11,9 +11,7 @@
@include('shared.header')
@include('shared.sidebar', ['scope' => 'admin'])
@yield('content')
<footer class="main-footer">
@include('shared.footer')
</footer>
@include('shared.footer')
</div>
@include('shared.foot')

View File

@ -11,9 +11,7 @@
@include('shared.header')
@include('shared.sidebar', ['scope' => 'user'])
@yield('content')
<footer class="main-footer">
@include('shared.footer')
</footer>
@include('shared.footer')
</div>
@include('shared.foot')