Devise\Media\Helpers\Caption::saveForImage PHP 메소드

saveForImage() 공개 메소드

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