I’ve seen that when I tried to use a
@component and a
@section inside the component I get an error!
I would like to decouple things and probably re-use the sections defined in the layouts.master inside a component.
For instance, I have a
@!section('extra_js') which is right at the bottom of the
@layouts('master') and within the component, I would like to add JS dependencies that are only related to the component itself and to be loaded only when that component is in use.