I just discovered this package. It's awesome but how can I extend a layout view from a child view. Since each module has its own views folder, I would like to have a master layout that can be extended by all other views in each module. How is this possible?
If you put a view into Laravel's original resources/views directory, you can still access it from anywhere like normal. Just omit the namespace part. (E.g. the part before ::, as well as the double colon.)
Hi @abiodunjames You can create a Core module. Then add the views to the core module. Then have your view files in other modules extend it. @extends("core::layout.main")
@mikemand Nice one. I did that it worked. @adelowo Thanks
Is there any way to extend the view from laravel root views directory? I don't really like the "core module" approach
I believe you can just use @extends("layout.main") in that case.
Most helpful comment
Hi @abiodunjames You can create a
Coremodule. Then add the views to thecoremodule. Then have your view files in other modules extend it.@extends("core::layout.main")