Method |
Description |
|
create ( array $attributes = [] ) : void |
When creating a post, run the attributes through a validator first. |
|
getImageAttribute ( ) : string |
Get the image with its directory location |
|
getPresenter ( ) |
Initiate the presenter class |
|
getThumbnailAttribute ( ) : string |
Get the thumbnail with its directory location |
|
setImageAttribute ( $file ) |
Upload the image while creating/updating records |
|
update ( array $attributes = [], array $options = [] ) : void |
When updating a post, run the attributes through a validator first. |
|