J
J
Jedi2020-01-31 20:26:33
Laravel
Jedi, 2020-01-31 20:26:33

How to competently work with the Blade templating engine?

Hello!

On the right is the menu list:

<ul>
   <li><a href="route('somewhere1')>Somewhere 1</a>"</li>
   <li><a href="route('somewhere2')>Somewhere 2</a>"</li>
   <li><a href="route('somewhere3')>Somewhere 3</a>"</li>
</ul>


I want to implement on the same file somewheres.blade.phpto check for links and add the corresponding `somewhere`.

@include('somewhere1')

How to implement it correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question