mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
bugfixes
This commit is contained in:
@@ -11,7 +11,8 @@ use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
use Intervention\Image\ImageManagerStatic as Image;
|
||||
|
||||
function get_setting($setting) {
|
||||
function get_setting($setting)
|
||||
{
|
||||
return Setting::where('name', $setting)->first()->value;
|
||||
}
|
||||
|
||||
@@ -123,12 +124,11 @@ function get_storage()
|
||||
*/
|
||||
function is_storage_driver($driver)
|
||||
{
|
||||
|
||||
if (is_array($driver)) {
|
||||
return in_array(env('FILESYSTEM_DRIVER'), $driver);
|
||||
return in_array(config('filesystem.default'), $driver);
|
||||
}
|
||||
|
||||
return env('FILESYSTEM_DRIVER') === $driver;
|
||||
return config('filesystem.default') === $driver;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user