Devise
Class

Devise\Pages\Fields\ImageFieldUpdated

class ImageFieldUpdated

This class should be registered in a service provider for PagesServiceProvider.

It is called anytime a field with type "image" is updated. We do this so we can hook into the updated event and then create media versions and thumbnails for this image field

Methods

__construct(Images $Images, MediaPaths $MediaPaths)

Constructs a new Image field updated event handler

array handle($field, $input, $beforeChanges)

This is called anytime after we update an image field in devise

Details

at line 22
public __construct(Images $Images, MediaPaths $MediaPaths)

Constructs a new Image field updated event handler

Parameters

Images $Images
MediaPaths $MediaPaths

at line 37
public array handle($field, $input, $beforeChanges)

This is called anytime after we update an image field in devise

Parameters

$field
$input
$beforeChanges

Return Value

array