Answer the question
In order to leave comments, you need to log in
How to load 2 templates in Laravel?
Tell me how you can load 2 templates with 2 controllers at once?
get('/', ['as' => 'classic', 'uses' => '[email protected]']);
get('/', ['as' => 'fast', 'uses' => '[email protected]']);
<div id="classic">
@yield('content')
</div>
<div id="fast" style="display: none">
@yield('content2')
</div>
Answer the question
In order to leave comments, you need to log in
You create another controller method in which you get the necessary data and give it to the desired template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question