L
L
Lucius Mooning2018-08-14 09:28:33
Laravel
Lucius Mooning, 2018-08-14 09:28:33

How can I make it so that only passed variables can be used in the sub-blade-template, but not global variables?

Good afternoon!
There are two blade-templates: main page MainView and subView.
In blade-template MainView^ @include
('subView', ['dataSubView' => 'dataSubView'])
MainView) was not visible and could not be used.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-virt, 2018-08-14
@d-virt

Unfortunately, out of the box, no way, because it requires a separate implementation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question