What is the counterpart of:
if (!File::exists($path))
using Storage::
in Laravel 5.1 ?
Anyone?
Try this:
// To check if File exists in Laravel 5.1
$exists = Storage::disk('local')->has('file.jpg');
// To check if File exists in Laravel 5.2
$exists = Storage::disk('local')->exists('file.jpg');