Solution:1
No, there is no such directive but you may use something like this:
@if(view()->exists('view.name'))
@include('view.name')
@else
@include('other.view.name')
@endif
Solution:1
No, there is no such directive but you may use something like this:
@if(view()->exists('view.name'))
@include('view.name')
@else
@include('other.view.name')
@endif
Solution:2
I think you could one line it like this, if you felt the need:
@include(view()->exists('view.name') ? 'view.name' : 'other.view.name')