mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-19 10:33:11 +00:00
Added support for default storage driver shortcuts, eg. Storage::exists('file.jpg');
This commit is contained in:
@@ -164,6 +164,14 @@ class Generator
|
|||||||
}
|
}
|
||||||
}catch (\Exception $e) {}
|
}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) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user