Свойство | Тип | Описание | |
---|---|---|---|
$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 |