How to @include a blade template only if it exists ? I could do something like that :
@if (File::exists('great/path/to/blade/template.blade.php'))
@include('path.to.blade.template')
@endif
But that really isn't elegant and efficient.
I could include it without if statements, and catch & hide errors if the file isn't here, but that is a little dirty, if not barbaric.
What would be great is something like that :
@includeifexists('path.to.blade.template')
(pseudo code, but this blade command does not exist)
if
statements, but I suppose it is only worthy if you have plenty of these cases to use it at. – Blackmarketeer