file exists for image in laravel\ code example
Example 1: image exists in laravel
if(File::exists(public_path('images/1461177230.jpg'))){ dd('File is exists.');}else{ dd('File is not exists.');}
Example 2: image exists in laravel
if(file_exists(public_path('images/1461177230.jpg'))){ dd('File is exists.');}else{ dd('File is not exists.');}