its not @stop its @endsection btw..
in your layout.blade.php do @yield('css') or @yield('js')
then in your template where you want to add specific js/css just do @section('css') blah @endsection..
its been working for me.. (5.1 btw)
Your layout.blade.php (your parent layout) needs to yield
the content. So change this:
@section('css')
@stop
to this:
@yield('css')
Also, both @stop and @endsection will work. From what I understand, both will generate <?php $__env->stopSection(); ?>
so I actually don't know what the differences are between the two.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community