Check if a view exists and do an @include in Laravel Blade

只谈情不闲聊 提交于 2019-12-03 13:03:32
BARNZ

Had a similar issue. Turns out that from Laravel 5.3 there is an @includeIf blade directive for this purpose.

Simply do @includeIf('some-view')

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!