Devise\Media\Helpers\Caption::saveForImage PHP Method

saveForImage() public method

Saves the text file using the image path, and text passed
public saveForImage ( string $imagePath, $text ) : string
$imagePath string
return string $text
    public function saveForImage($imagePath, $text)
    {
        $captionPath = $this->MediaPaths->imageCaptionPath($imagePath);
        return $this->File->put($captionPath, $text);
    }