FileUpload
class FileUpload extends BaseFileUpload (View source)
Traits
Properties
static protected array | $configurations | from Configurable | |
static protected array | $importantConfigurations | from Configurable | |
protected string | $evaluationIdentifier | from EvaluatesClosures | |
protected array | $evaluationParametersToRemove | from EvaluatesClosures | |
protected string | $view | ||
protected array | $viewData | from ViewComponent | |
protected string | $viewIdentifier | from Field | |
static protected array | $propertyCache | from ViewComponent | |
static protected array | $methodCache | from ViewComponent | |
protected ComponentContainer | $container | from BelongsToContainer | |
protected Model|string|Closure|null | $model | from BelongsToModel | |
protected Closure|null | $loadStateFromRelationshipsUsing | from BelongsToModel | |
protected Closure|null | $saveRelationshipsUsing | from BelongsToModel | |
protected Closure|null | $saveRelationshipsBeforeChildrenUsing | from BelongsToModel | |
protected bool|Closure | $shouldSaveRelationshipsWhenHidden | from BelongsToModel | |
protected Component|bool|null | $cachedConcealingComponent | from CanBeConcealed | |
protected bool|Closure | $isDisabled | from CanBeDisabled | |
protected bool|Closure | $isHidden | from CanBeHidden | |
protected bool|Closure | $isVisible | from CanBeHidden | |
protected array | $columnSpan | from CanSpanColumns | |
protected array | $actions | from HasActions | |
protected Model|string|null | $actionFormModel | from HasActions | |
protected array|Closure | $childComponents | from HasChildComponents | |
protected string|Closure|null | $fieldWrapperView | from HasFieldWrapper | |
protected bool|Closure|null | $hasInlineLabel | from HasInlineLabel | |
protected string|Closure|null | $id | from HasId | |
protected bool|Closure | $isLabelHidden | from HasLabel | |
protected Htmlable|Closure|null | $label | from HasLabel | |
protected bool | $shouldTranslateLabel | from HasLabel | |
protected string|Closure|null | $maxWidth | from HasMaxWidth | |
protected array | $meta | from HasMeta | |
protected Closure|null | $afterStateHydrated | from HasState | |
protected Closure|null | $afterStateUpdated | from HasState | |
protected Closure|null | $beforeStateDehydrated | from HasState | |
protected | $defaultState | from HasState | |
protected Closure|null | $dehydrateStateUsing | from HasState | |
protected Closure|null | $mutateDehydratedStateUsing | from HasState | |
protected bool | $hasDefaultState | from HasState | |
protected bool|Closure | $isDehydrated | from HasState | |
protected string|null | $statePath | from HasState | |
protected array | $listeners | from ListensToEvents | |
protected array|null | $columns | from HasColumns | |
protected array | $extraAttributes | from HasExtraAttributes | |
protected | $stateBindingModifiers | from HasStateBindingModifiers | |
protected string|int|null | $debounce | from HasStateBindingModifiers | |
protected bool|Closure | $isAutofocused | from CanBeAutofocused | |
protected bool|Closure | $isRequired | from CanBeValidated | |
protected string|Closure|null | $regexPattern | from CanBeValidated | |
protected array | $rules | from CanBeValidated | |
protected string|Closure|null | $validationAttribute | from CanBeValidated | |
protected Htmlable|Closure|null | $helperText | from HasHelperText | |
protected Htmlable|Closure|null | $hint | from HasHint | |
protected Action|Closure|null | $hintAction | from HasHint | |
protected string|Closure|null | $hintColor | from HasHint | |
protected string|Closure|null | $hintIcon | from HasHint | |
protected string | $name | from HasName | |
protected Arrayable|Closure|null | $acceptedFileTypes | from BaseFileUpload | |
protected bool|Closure | $canDownload | from BaseFileUpload | |
protected bool|Closure | $canOpen | from BaseFileUpload | |
protected bool|Closure | $canPreview | from BaseFileUpload | |
protected bool|Closure | $canReorder | from BaseFileUpload | |
protected string|Closure|null | $directory | from BaseFileUpload | |
protected string|Closure|null | $diskName | from BaseFileUpload | |
protected bool|Closure | $isMultiple | from BaseFileUpload | |
protected int|Closure|null | $maxSize | from BaseFileUpload | |
protected int|Closure|null | $minSize | from BaseFileUpload | |
protected int|Closure|null | $maxFiles | from BaseFileUpload | |
protected int|Closure|null | $minFiles | from BaseFileUpload | |
protected bool|Closure | $shouldPreserveFilenames | from BaseFileUpload | |
protected bool|Closure | $shouldMoveFile | from BaseFileUpload | |
protected bool|Closure | $shouldStoreFiles | from BaseFileUpload | |
protected string|Closure|null | $fileNamesStatePath | from BaseFileUpload | |
protected string|Closure | $visibility | from BaseFileUpload | |
protected Closure|null | $deleteUploadedFileUsing | from BaseFileUpload | |
protected Closure|null | $getUploadedFileNameForStorageUsing | from BaseFileUpload | |
protected Closure|null | $getUploadedFileUrlUsing | from BaseFileUpload | |
protected Closure|null | $reorderUploadedFilesUsing | from BaseFileUpload | |
protected Closure|null | $saveUploadedFileUsing | from BaseFileUpload | |
protected array | $extraInputAttributes | from HasExtraInputAttributes | |
protected string|Closure|null | $placeholder | from HasPlaceholder | |
protected array | $extraAlpineAttributes | from HasExtraAlpineAttributes | |
protected string|Closure|null | $imageCropAspectRatio | ||
protected string|Closure|null | $imagePreviewHeight | ||
protected string|Closure|null | $imageResizeTargetHeight | ||
protected string|Closure|null | $imageResizeTargetWidth | ||
protected string|Closure|null | $imageResizeMode | ||
protected bool|Closure | $imageResizeUpscale | ||
protected bool|Closure | $isAvatar | ||
protected string|Closure | $loadingIndicatorPosition | ||
protected string|Closure|null | $panelAspectRatio | ||
protected string|Closure|null | $panelLayout | ||
protected string|Closure | $removeUploadedFileButtonPosition | ||
protected bool|Closure | $shouldAppendFiles | ||
protected bool|Closure | $shouldOrientImageFromExif | ||
protected string|Closure | $uploadButtonPosition | ||
protected string|Closure | $uploadProgressIndicatorPosition |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
static
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)
No description
Configurable
configure()
No description
protected void
setUp()
No description
evaluate($value, array $parameters = [], array $exceptParameters = [])
No description
protected array
getDefaultEvaluationParameters()
No description
protected
resolveEvaluationParameter(string $parameter, Closure $value)
No description
protected bool
isEvaluationParameterRemoved(string $parameter)
No description
ViewComponent
view(string $view, array $viewData = [])
No description
protected array
extractPublicProperties()
No description
protected array
extractPublicMethods()
No description
ViewComponent
viewData(array $data)
No description
string
getView()
No description
string
toHtml()
No description
View
render()
No description
BelongsToContainer
container(ComponentContainer $container)
No description
ComponentContainer
getContainer()
No description
HasForms
getLivewire()
No description
BelongsToModel
model(Model|string|Closure|null $model = null)
No description
void
saveRelationships()
No description
void
saveRelationshipsBeforeChildren()
No description
void
loadStateFromRelationships(bool $andHydrate = false)
No description
BelongsToModel
saveRelationshipsUsing(Closure|null $callback)
No description
BelongsToModel
saveRelationshipsBeforeChildrenUsing(Closure|null $callback)
No description
BelongsToModel
saveRelationshipsWhenHidden(bool|Closure $condition = true)
No description
bool
shouldSaveRelationshipsWhenHidden()
No description
BelongsToModel
loadStateFromRelationshipsUsing(Closure|null $callback)
No description
string|null
getModel()
No description
Model|null
getRecord()
No description
Model|null
getModelInstance()
No description
Component|null
getConcealingComponent()
No description
bool
isConcealed()
No description
CanBeDisabled
disabled(bool|Closure $condition = true)
No description
CanBeDisabled
disabledOn(string|array $contexts)
No description
bool
isDisabled()
No description
bool
isEnabled()
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
hiddenOn(string|array $contexts)
No description
CanBeHidden
hiddenWhenAllChildComponentsHidden()
No description
CanBeHidden
when(bool|Closure $condition = true)
No description
CanBeHidden
whenTruthy(string|array $paths)
No description
CanBeHidden
whenFalsy(string|array $paths)
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
CanBeHidden
visibleOn(string|array $contexts)
No description
bool
isHidden()
No description
CanSpanColumns
columnSpan(array|int|string|Closure|null $span)
No description
CanSpanColumns
columnSpanFull()
No description
array|int|string|null
getColumnSpan(int|string|null $breakpoint = null)
No description
Cloneable
getClone()
No description
HasActions
registerActions(array $actions)
No description
Action|Closure|null
getAction(string $name)
No description
array
getActions()
No description
HasActions
actionFormModel(Model|string|null $model)
No description
Model|string|null
getActionFormModel()
No description
bool
hasAction(string $name)
No description
HasChildComponents
childComponents(array|Closure $components)
No description
HasChildComponents
schema(array|Closure $components)
No description
array
getChildComponents()
No description
ComponentContainer
getChildComponentContainer($key = null)
No description
array
getChildComponentContainers(bool $withHidden = false)
No description
bool
hasChildComponentContainer(bool $withHidden = false)
No description
HasFieldWrapper
fieldWrapperView(string|Closure|null $view)
No description
string
getFieldWrapperView()
No description
string|null
getCustomFieldWrapperView()
No description
HasInlineLabel
inlineLabel(bool|Closure|null $condition = true)
No description
bool|null
hasInlineLabel()
No description
in
HasId at line 11
HasId
id(string|Closure|null $id)
No description
in
HasId at line 18
string|null
getId()
No description
HasLabel
disableLabel(bool|Closure $condition = true)
No description
HasLabel
label(Htmlable|Closure|null $label)
No description
HasLabel
translateLabel(bool $shouldTranslateLabel = true)
No description
Htmlable|null
getLabel()
No description
bool
isLabelHidden()
No description
HasMaxWidth
maxWidth(string|Closure|null $width)
No description
string|null
getMaxWidth()
No description
HasMeta
meta(string $key, $value)
No description
getMeta(string|array|null $keys = null)
No description
bool
hasMeta(string|array $keys)
No description
HasState
callAfterStateHydrated()
No description
HasState
callAfterStateUpdated()
No description
HasState
callBeforeStateDehydrated()
No description
HasState
default($state)
No description
HasState
dehydrated(bool|Closure $condition = true)
No description
array
getStateToDehydrate()
No description
void
dehydrateState(array $state)
No description
void
hydrateState(array|null $hydratedDefaultState)
No description
void
fill()
No description
void
hydrateDefaultState(array|null $hydratedDefaultState)
No description
void
fillStateWithNull()
No description
mutateDehydratedState($state)
No description
bool
mutatesDehydratedState()
No description
HasState
state($state)
No description
HasState
statePath(string|null $path)
No description
getDefaultState()
No description
getState()
No description
getOldState()
No description
string
getStatePath(bool $isAbsolute = true)
No description
protected bool
hasDefaultState()
No description
bool
isDehydrated()
No description
protected Closure
getGetCallback()
No description
protected Closure
getSetCallback()
No description
protected string
generateRelativeStatePath(Component $path, bool $isAbsolute = false)
No description
ListensToEvents
dispatchEvent(string $event, ...$parameters)
No description
ListensToEvents
registerListeners(array $listeners)
No description
array
getListeners(string $event = null)
No description
HasColumns
columns(array|int|string|null $columns = 2)
No description
array|int|string|null
getColumns($breakpoint = null)
No description
array
getColumnsConfig()
No description
HasExtraAttributes
extraAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAttributes()
No description
ComponentAttributeBag
getExtraAttributeBag()
No description
HasStateBindingModifiers
reactive(bool $condition = true)
No description
HasStateBindingModifiers
lazy(bool $condition = true)
No description
HasStateBindingModifiers
debounce(string|int|null $delay = '500ms')
No description
HasStateBindingModifiers
stateBindingModifiers(array|null $modifiers)
No description
string
applyStateBindingModifiers(string $expression, array $lazilyEntangledModifiers = [])
No description
array
getStateBindingModifiers()
No description
bool
isReactive()
No description
bool
isLazy()
No description
bool
isDebounced()
No description
string|int|null
getDebounce()
No description
protected bool
shouldEvaluateWithState()
No description
CanBeAutofocused
autofocus(bool|Closure $condition = true)
No description
bool
isAutofocused()
No description
CanBeValidated
activeUrl(bool|Closure $condition = true)
No description
CanBeValidated
alpha(bool|Closure $condition = true)
No description
CanBeValidated
alphaDash(bool|Closure $condition = true)
No description
CanBeValidated
alphaNum(bool|Closure $condition = true)
No description
CanBeValidated
ascii(bool|Closure $condition = true)
No description
CanBeValidated
confirmed(bool|Closure $condition = true)
No description
CanBeValidated
doesntStartWith(Arrayable|string|Closure $values)
No description
CanBeValidated
doesntEndWith(Arrayable|string|Closure $values)
No description
CanBeValidated
endsWith(Arrayable|string|Closure $values)
No description
CanBeValidated
enum(string|Closure $enum)
No description
CanBeValidated
exists(string|Closure|null $table = null, string|Closure|null $column = null, Closure|null $callback = null)
No description
CanBeValidated
filled(bool|Closure $condition = true)
No description
CanBeValidated
in(Arrayable|string|Closure $values)
No description
CanBeValidated
ip(bool|Closure $condition = true)
No description
CanBeValidated
ipv4(bool|Closure $condition = true)
No description
CanBeValidated
ipv6(bool|Closure $condition = true)
No description
CanBeValidated
json(bool|Closure $condition = true)
No description
CanBeValidated
macAddress(bool|Closure $condition = true)
No description
CanBeValidated
multipleOf(int|Closure $value)
No description
CanBeValidated
notIn(Arrayable|string|Closure $values)
No description
CanBeValidated
notRegex(string|Closure|null $pattern)
No description
CanBeValidated
nullable(bool|Closure $condition = true)
No description
CanBeValidated
prohibited(bool|Closure $condition = true)
No description
CanBeValidated
required(bool|Closure $condition = true)
No description
CanBeValidated
requiredIf(string|Closure $statePath, mixed $stateValues, bool $isStatePathAbsolute = false)
No description
CanBeValidated
requiredUnless(string|Closure $statePath, mixed $stateValues, bool $isStatePathAbsolute = false)
No description
CanBeValidated
requiredWith(string|array|Closure $statePaths, bool $isStatePathAbsolute = false)
No description
CanBeValidated
requiredWithAll(string|array|Closure $statePaths, bool $isStatePathAbsolute = false)
No description
CanBeValidated
requiredWithout(string|array|Closure $statePaths, bool $isStatePathAbsolute = false)
No description
CanBeValidated
requiredWithoutAll(string|array|Closure $statePaths, bool $isStatePathAbsolute = false)
No description
CanBeValidated
regex(string|Closure|null $pattern)
No description
CanBeValidated
startsWith(Arrayable|string|Closure $values)
No description
CanBeValidated
string(bool|Closure $condition = true)
No description
CanBeValidated
uuid(bool|Closure $condition = true)
No description
CanBeValidated
rule(string|object $rule, bool|Closure $condition = true)
No description
CanBeValidated
rules(string|array $rules, bool|Closure $condition = true)
No description
CanBeValidated
after(string|Closure $date, bool $isStatePathAbsolute = false)
No description
CanBeValidated
afterOrEqual(string|Closure $date, bool $isStatePathAbsolute = false)
No description
CanBeValidated
before(string|Closure $date, bool $isStatePathAbsolute = false)
No description
CanBeValidated
beforeOrEqual(string|Closure $date, bool $isStatePathAbsolute = false)
No description
CanBeValidated
different(string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
gt(string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
gte(string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
lt(string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
lte(string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
same(string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
unique(string|Closure|null $table = null, string|Closure|null $column = null, Model|Closure $ignorable = null, Closure|null $callback = null, bool $ignoreRecord = false)
No description
CanBeValidated
validationAttribute(string|Closure|null $label)
No description
string|null
getRegexPattern()
No description
string
getRequiredValidationRule()
No description
string
getValidationAttribute()
No description
array
getValidationRules()
No description
void
dehydrateValidationRules(array $rules)
No description
void
dehydrateValidationAttributes(array $attributes)
No description
bool
isRequired()
No description
CanBeValidated
dateComparisonRule(string $rule, string|Closure $date, bool $isStatePathAbsolute = false)
No description
CanBeValidated
fieldComparisonRule(string $rule, string|Closure $statePath, bool $isStatePathAbsolute = false)
No description
CanBeValidated
multiFieldComparisonRule(string $rule, array|string|Closure $statePaths, bool $isStatePathAbsolute = false)
No description
CanBeValidated
multiFieldValueComparisonRule(string $rule, string|Closure $statePath, mixed $stateValues, bool $isStatePathAbsolute = false)
No description
HasHelperText
helperText(Htmlable|Closure|null $text)
No description
Htmlable|null
getHelperText()
No description
HasHint
hint(Htmlable|Closure|null $hint)
No description
HasHint
hintColor(string|Closure|null $hintColor)
No description
HasHint
hintIcon(string|Closure|null $hintIcon)
No description
HasHint
hintAction(Action|Closure|null $action)
No description
Htmlable|null
getHint()
No description
string|null
getHintColor()
No description
string|null
getHintIcon()
No description
Action|null
getHintAction()
No description
HasName
name(string $name)
No description
string
getName()
No description
in
Field at line 15
final
__construct(string $name)
No description
in
Field at line 21
static Field
make(string $name)
No description
BaseFileUpload
acceptedFileTypes(Arrayable|Closure $types)
No description
BaseFileUpload
directory(string|Closure|null $directory)
No description
BaseFileUpload
disk($name)
No description
BaseFileUpload
enableDownload(bool|Closure $condition = true)
No description
BaseFileUpload
enableOpen(bool|Closure $condition = true)
No description
BaseFileUpload
enableReordering(bool|Closure $condition = true)
No description
BaseFileUpload
disablePreview(bool|Closure $condition = true)
No description
BaseFileUpload
storeFileNamesIn(string|Closure|null $statePath)
No description
BaseFileUpload
storeFiles(bool|Closure $condition = true)
No description
BaseFileUpload
preserveFilenames(bool|Closure $condition = true)
No description
BaseFileUpload
moveFile(bool|Closure $condition = true)
No description
BaseFileUpload
maxSize(int|Closure|null $size)
No description
BaseFileUpload
minSize(int|Closure|null $size)
No description
BaseFileUpload
maxFiles(int|Closure|null $count)
No description
BaseFileUpload
minFiles(int|Closure|null $count)
No description
BaseFileUpload
multiple(bool|Closure $condition = true)
No description
BaseFileUpload
visibility(string|Closure|null $visibility)
No description
BaseFileUpload
deleteUploadedFileUsing(Closure|null $callback)
No description
BaseFileUpload
getUploadedFileUrlUsing(Closure|null $callback)
No description
BaseFileUpload
reorderUploadedFilesUsing(Closure|null $callback)
No description
BaseFileUpload
saveUploadedFileUsing(Closure|null $callback)
No description
bool
canDownload()
No description
bool
canOpen()
No description
bool
canPreview()
No description
bool
canReorder()
No description
array|null
getAcceptedFileTypes()
No description
string|null
getDirectory()
No description
Filesystem
getDisk()
No description
string
getDiskName()
No description
int|null
getMaxSize()
No description
int|null
getMinSize()
No description
string
getVisibility()
No description
bool
shouldPreserveFilenames()
No description
bool
shouldMoveFile()
No description
string|null
getFileNamesStatePath()
No description
bool
shouldStoreFiles()
No description
BaseFileUpload
deleteUploadedFile(string $fileKey)
No description
TemporaryUploadedFile|null
removeUploadedFile(string $fileKey)
No description
void
removeStoredFileName(string $file)
No description
void
reorderUploadedFiles(array $fileKeys)
No description
array|null
getUploadedFileUrls()
No description
void
saveUploadedFiles()
No description
void
storeFileName(string $file, string $fileName)
No description
string|array|null
getStoredFileNames()
No description
bool
isMultiple()
No description
BaseFileUpload
getUploadedFileNameForStorageUsing(Closure $callback)
No description
string
getUploadedFileNameForStorage(TemporaryUploadedFile $file)
No description
HasExtraInputAttributes
extraInputAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraInputAttributes()
No description
ComponentAttributeBag
getExtraInputAttributeBag()
No description
HasPlaceholder
placeholder(string|Closure|null $placeholder)
No description
string|null
getPlaceholder()
No description
HasExtraAlpineAttributes
extraAlpineAttributes(array|Closure $attributes, bool $merge = false)
No description
array
getExtraAlpineAttributes()
No description
ComponentAttributeBag
getExtraAlpineAttributeBag()
No description
FileUpload
appendFiles(bool|Closure $condition = true)
No description
FileUpload
avatar()
No description
FileUpload
idleLabel(string|Closure|null $label)
deprecated
deprecated
No description
FileUpload
image()
No description
FileUpload
imageCropAspectRatio(string|Closure|null $ratio)
No description
FileUpload
imagePreviewHeight(string|Closure|null $height)
No description
FileUpload
imageResizeTargetHeight(string|Closure|null $height)
No description
FileUpload
imageResizeTargetWidth(string|Closure|null $width)
No description
FileUpload
imageResizeMode(string|Closure|null $mode)
No description
FileUpload
imageResizeUpscale(bool|Closure $condition = true)
No description
FileUpload
loadingIndicatorPosition(string|Closure|null $position)
No description
FileUpload
orientImageFromExif(bool|Closure $condition = true)
No description
FileUpload
panelAspectRatio(string|Closure|null $ratio)
No description
FileUpload
panelLayout(string|Closure|null $layout)
No description
FileUpload
removeUploadedFileButtonPosition(string|Closure|null $position)
No description
FileUpload
uploadButtonPosition(string|Closure|null $position)
No description
FileUpload
uploadProgressIndicatorPosition(string|Closure|null $position)
No description
string|null
getImageCropAspectRatio()
No description
string|null
getImagePreviewHeight()
No description
string|null
getImageResizeTargetHeight()
No description
string|null
getImageResizeTargetWidth()
No description
string|null
getImageResizeMode()
No description
bool
getImageResizeUpscale()
No description
string
getLoadingIndicatorPosition()
No description
string|null
getPanelAspectRatio()
No description
string|null
getPanelLayout()
No description
string
getRemoveUploadedFileButtonPosition()
No description
string
getUploadButtonPosition()
No description
string
getUploadProgressIndicatorPosition()
No description
bool
isAvatar()
No description
bool
shouldAppendFiles()
No description
bool
shouldOrientImageFromExif()
No description