public function put($path, $contents)
    {
        $path = self::validatePath($path);
        $fullPath = $this->getMediaPath($path);
        return $this->getStorageDisk()->put($fullPath, $contents);
    }
public function put($path, $contents)
    {
        $path = self::validatePath($path);
        $fullPath = $this->getMediaPath($path);
        return $this->getStorageDisk()->put($fullPath, $contents);
    }
public function put ( $ path , $ contents ) { $ path = self :: validatePath ( $ path ) ; $ fullPath = $ this -> getMediaPath ( $ path ) ; return $ this -> getStorageDisk ( ) -> put ( $ fullPath , $ contents ) ; }
Puts a file to the library.
@param string $path Specifies the file path relative the the Library root.
@param string $contents Specifies the file contents.
@return boolean
Puts a file to the library .