UploadPhotoForm
extends AbstractForm
in package
Uses
MultipleTypeUploadTrait
Class UploadPhotoForm.
Tags
Table of Contents
Properties
Methods
- boot() : void
- canUploadVideos() : bool
- getAcceptableMimeTypes() : string
- getAcceptableTypes() : array<string|int, string>
- getLabel() : string|null
- fileUploadValidator() : Shape
- initialize() : void
- prepare() : void
- canCreateAlbum() : bool
Properties
$resource
public
Photo
$resource
Methods
boot()
public
boot(UploadFormRequest $request) : void
Parameters
- $request : UploadFormRequest
Tags
canUploadVideos()
public
canUploadVideos() : bool
Return values
boolgetAcceptableMimeTypes()
public
getAcceptableMimeTypes(array<string|int, string> $allowedTypes) : string
Parameters
- $allowedTypes : array<string|int, string>
Return values
stringgetAcceptableTypes()
public
getAcceptableTypes() : array<string|int, string>
Return values
array<string|int, string>getLabel()
public
getLabel(array<string|int, string> $types) : string|null
Parameters
- $types : array<string|int, string>
Return values
string|nullfileUploadValidator()
protected
fileUploadValidator() : Shape
Return values
Shapeinitialize()
protected
initialize() : void
prepare()
protected
prepare() : void
Tags
canCreateAlbum()
private
canCreateAlbum(User $context) : bool
Parameters
- $context : User