With Laravel Blade, is there an elegant way to check if a view exists before doing an @include?
@include
For example I\'m currently doing this:
@if(V
Had a similar issue. Turns out that from Laravel 5.3 there is an @includeIf blade directive for this purpose.
@includeIf
Simply do @includeIf('some-view')
@includeIf('some-view')