src/Traits/Filesystem/CloudStorageTrait.php
public function getDefaultCloudStorage(): ?Cloud
    {
        // By default, the Storage Facade does not return the
        // any actual storage fisk, but rather an
        // instance of \Illuminate\Filesystem\FilesystemManager.
        // Therefore, we make sure only to obtain its
        // "disk", to make sure that its the correct
        // instance that we obtain.
        $manager = Storage::getFacadeRoot();
        if (isset($manager)) {
            return $manager->disk();
        }
        return $manager;
    }
public function getDefaultCloudStorage(): ?Cloud
    {
        // By default, the Storage Facade does not return the
        // any actual storage fisk, but rather an
        // instance of \Illuminate\Filesystem\FilesystemManager.
        // Therefore, we make sure only to obtain its
        // "disk", to make sure that its the correct
        // instance that we obtain.
        $manager = Storage::getFacadeRoot();
        if (isset($manager)) {
            return $manager->disk();
        }
        return $manager;
    }
public function getDefaultCloudStorage ( ) : ? Cloud { // By default, the Storage Facade does not return the // any actual storage fisk, but rather an // instance of \Illuminate\Filesystem\FilesystemManager. // Therefore, we make sure only to obtain its // "disk", to make sure that its the correct // instance that we obtain. $ manager = Storage :: getFacadeRoot ( ) ; if ( isset ( $ manager ) ) { return $ manager -> disk ( ) ; } return $ manager ; }
Get a default cloud storage value, if any is available

@return Cloud|null A default cloud storage value or Null if no default value is available
Get a default cloud storage value if any is available