프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cache | |||
$imageTool | |||
$storageUrl |
메소드 | 설명 | |
---|---|---|
__construct ( Intervention\Image\ImageManager $imageTool, Illuminate\Contracts\Filesystem\Factory $fileSystem, Illuminate\Contracts\Cache\Repository $cache ) | ImageService constructor. | |
destroyImage ( |
Destroys an Image object along with its files and thumbnails. | |
getThumbnail ( |
Get the thumbnail for an image. | |
saveNewFromUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, string $type, integer $uploadedTo ) : mixed | Saves a new image from an upload. | |
saveUserGravatar ( |
Save a gravatar image and set a the profile image for a user. |
메소드 | 설명 | |
---|---|---|
getPath ( |
Get the storage path, Dependant of storage type. |
메소드 | 설명 | |
---|---|---|
getPublicUrl ( string $filePath ) : string | Gets a public facing url for an image by checking relevant environment variables. | |
saveNew ( string $imageName, string $imageData, string $type, integer $uploadedTo ) : |
Saves a new image | |
saveNewFromUrl ( $url, string $type, boolean | string $imageName = false ) : mixed | Gets an image from url and saves it to the database. |
public __construct ( Intervention\Image\ImageManager $imageTool, Illuminate\Contracts\Filesystem\Factory $fileSystem, Illuminate\Contracts\Cache\Repository $cache ) | ||
$imageTool | Intervention\Image\ImageManager | |
$fileSystem | Illuminate\Contracts\Filesystem\Factory | |
$cache | Illuminate\Contracts\Cache\Repository |
public destroyImage ( |
||
$image | ||
리턴 | boolean |
public saveUserGravatar ( |
||
$user | ||
$size | integer | |
리턴 | mixed |