untymage
3 months ago

How to get blade file path?

Posted 3 months ago by untymage

I have a partial blade file, I want to tell it if you included to specific blade file do something else, I need to find out existing blade file path to do that, i did this:

{{view()->getPath()}} but it cause error :

Method Illuminate\View\Factory::getPath does not exist

Please sign in or create an account to participate in this conversation.