N
N
ninja op op2020-07-11 13:59:38
Laravel
ninja op op, 2020-07-11 13:59:38

How to merge two sections at once from two different Laravel Blade files?

There are three files.

The first is app.blade.php: it has yield('scripts')
The second is modals.blade.php: a file with modal windows, it has a scripts section, which already has:

Third - index.blade.php: a file the main page, it also has a scripts section, which already says:


The problem is that one section interrupts another, and it turns out that the scripts section from the main page interrupts the scripts section from modal windows

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
ninja op op, 2020-07-11
@kur4chyt

solved with @parent

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question