src/Storage/Laravel/LaravelStorage.php
public function store(StorableFileInterface $file, $path)
    {
        if ( ! $this->filesystem->put($path, $file->content())) {
            throw new FileStorageException("Failed to store '{$file->name()}' to '{$path}'");
        }

        $stored = new DecoratorStoredFile($file);
        $stored->setUrl($this->prefixBaseUrl($path));

        return $stored;
    }
public function store(StorableFileInterface $file, $path)
    {
        if ( ! $this->filesystem->put($path, $file->content())) {
            throw new FileStorageException("Failed to store '{$file->name()}' to '{$path}'");
        }

        $stored = new DecoratorStoredFile($file);
        $stored->setUrl($this->prefixBaseUrl($path));

        return $stored;
    }
public function store ( StorableFileInterface $ file , $ path ) { if ( ! $ this -> filesystem -> put ( $ path , $ file -> content ( ) ) ) { throw new FileStorageException ( "Failed to store '{$file->name()}' to '{$path}'" ) ; } $ stored = new DecoratorStoredFile ( $ file ) ; $ stored -> setUrl ( $ this -> prefixBaseUrl ( $ path ) ) ; return $ stored ; }
Stores a file.

@param StorableFileInterface $file mixed content to store
@param string                $path where the file should be stored, including the filename
@return StoredFileInterface
@throws FileStorageException
Stores a file .