Check for file existence if Laravel's Blade template

Solution 1:

This is working for me, favicon.ico is inside public:

@if(file_exists('favicon.ico')) 
  File exists
@else
  Could not find file
@endif

So I think you just have to use @if(file_exists('covers/1.jpg'))

Solution 2:

In Laravel 4 you can use:

 @if (file_exists(public_path('covers/1.jpg')))

Use public_path to get the physical path to the file.