Merge pull request #327 from vedmant/master

Added support for default storage driver shortcuts, eg. Storage::exists('file.jpg');
This commit is contained in:
Barry vd. Heuvel
2016-03-03 15:38:04 +01:00
+8
View File
@@ -164,6 +164,14 @@ class Generator
}
}catch (\Exception $e) {}
try{
if (class_exists('Storage') && is_a('Storage', '\Illuminate\Support\Facades\Storage', true)){
$class = get_class(\Storage::disk());
$this->extra['Storage'] = array($class);
$this->interfaces['\Illuminate\Contracts\Filesystem\Filesystem'] = $class;
}
}catch (\Exception $e) {}
}
/**