A
A
Andrey Suha2019-12-11 11:48:58
Laravel
Andrey Suha, 2019-12-11 11:48:58

How to find out the path to it inside the blade template?

I have a view folder with templates. Inside it is something like this
public
-components
--component1
---index.blade
--component2
---index.blade
--component3
---index.blade
How can I get the path inside the component? e.g. components.component1.index

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Suha, 2019-12-11
@andreysuha

{{ $this->getCompiller()->getPath() }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question