EditRecord
class EditRecord extends Page (View source)
Traits
Properties
string[] | $mountedActions | from InteractsWithActions | |
array<string,array<string,mixed>> | $mountedActionsArguments | from InteractsWithActions | |
array<string,array<string,mixed>> | $mountedActionsData | from InteractsWithActions | |
mixed | $defaultAction | from InteractsWithActions | |
mixed | $defaultActionArguments | from InteractsWithActions | |
protected Action> | $cachedActions | from InteractsWithActions | |
protected bool | $hasActionsModalRendered | from InteractsWithActions | |
Form | $mountedActionForm | from InteractsWithActions | |
string[] | $mountedFormComponentActions | from HasFormComponentActions | |
array<string,array<string,mixed>> | $mountedFormComponentActionsArguments | from HasFormComponentActions | |
array<string,array<string,mixed>> | $mountedFormComponentActionsData | from HasFormComponentActions | |
string[] | $mountedFormComponentActionsComponents | from HasFormComponentActions | |
ComponentContainer | $mountedFormComponentActionForm | from HasFormComponentActions | |
array | $componentFileAttachments | from InteractsWithForms | |
protected Form> | $cachedForms | from InteractsWithForms | |
protected bool | $hasCachedForms | from InteractsWithForms | |
protected bool | $isCachingForms | from InteractsWithForms | |
protected bool | $hasFormsModalRendered | from InteractsWithForms | |
protected array<string,mixed> | $oldFormState | from InteractsWithForms | |
protected bool | $hasInfolistsModalRendered | from InteractsWithInfolists | |
protected Infolist> | $cachedInfolists | from InteractsWithInfolists | |
string[] | $mountedInfolistActions | from InteractsWithInfolists | |
array<string,array<string,mixed>> | $mountedInfolistActionsData | from InteractsWithInfolists | |
string|null | $mountedInfolistActionsComponent | from InteractsWithInfolists | |
string|null | $mountedInfolistActionsInfolist | from InteractsWithInfolists | |
static protected string | $layout | from Page | |
static protected string|null | $title | from BasePage | |
protected string|null | $heading | from BasePage | |
protected string|null | $subheading | from BasePage | |
static protected string | $view | ||
static Closure|null | $reportValidationErrorUsing | from BasePage | |
protected string|null | $maxContentWidth | from BasePage | |
protected array | $extraBodyAttributes | from BasePage | |
static Alignment | $formActionsAlignment | from BasePage | |
static bool | $formActionsAreSticky | from BasePage | |
static bool | $hasInlineLabels | from BasePage | |
static protected string|null | $slug | from HasRoutes | |
static protected string | $routeMiddleware | from HasRoutes | |
static protected string | $withoutRouteMiddleware | from HasRoutes | |
protected NavigationGroup[] | $cachedSubNavigation | from HasSubNavigation | |
static protected SubNavigationPosition | $subNavigationPosition | from HasSubNavigation | |
protected array | $cachedHeaderActions | from InteractsWithHeaderActions | |
static protected Cluster> | $cluster | from Page | |
static protected bool | $isDiscovered | from Page | |
static protected string|null | $navigationGroup | from Page | |
static protected string|null | $navigationBadgeTooltip | from Page | |
static protected string|null | $navigationParentItem | from Page | |
static protected string|null | $navigationIcon | from Page | |
static protected string|null | $activeNavigationIcon | from Page | |
static protected string|null | $navigationLabel | from Page | |
static protected int|null | $navigationSort | from Page | |
static protected bool | $shouldRegisterNavigation | from Page | |
static protected string|null | $breadcrumb | from Page | |
static protected string | $resource | from Page | |
protected bool|null | $hasDatabaseTransactions | from CanUseDatabaseTransactions | |
string|null | $activeRelationManager | from HasRelationManagers | |
Model|int|string|null | $record | from InteractsWithRecord | |
string | $savedDataHash | from HasUnsavedDataChangesAlert | |
protected bool|null | $hasUnsavedDataChangesAlert | from HasUnsavedDataChangesAlert | |
protected array | $cachedFormActions | from InteractsWithFormActions | |
array<string,mixed> | $data | ||
string|null | $previousUrl | ||
Form | $form |
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
Details
mixed
callMountedAction(array $arguments = [])
No description
protected void
afterActionCalled()
No description
mixed
mountAction(string $name, array $arguments = [])
No description
void
replaceMountedAction(string $name, array $arguments = [])
No description
bool
mountedActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedActionHasForm(Action|null $mountedAction = null)
No description
protected void
mergeCachedActions(array $actions)
No description
protected void
configureAction(Action $action)
No description
Action|null
getMountedAction()
No description
protected array
getInteractsWithActionsForms()
No description
Form|null
getMountedActionForm(Action|null $mountedAction = null)
No description
protected Model|string|null
getMountedActionFormModel()
No description
Action|null
getAction(string|array $name)
No description
protected Action|null
getMountableModalActionFromAction(Action $action, array $modalActionNames)
No description
protected string|null
popMountedAction()
No description
protected void
resetMountedActionProperties()
No description
void
unmountAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
cacheMountedActionForm(Action|null $mountedAction = null)
No description
protected void
closeActionModal()
No description
protected void
openActionModal()
No description
string|null
getActiveActionsLocale()
No description
Infolist
mountedActionInfolist()
No description
mixed
callMountedFormComponentAction(array $arguments = [])
No description
mixed
mountFormComponentAction(string $component, string $name, array $arguments = [])
No description
protected void
cacheMountedFormComponentActionForm(Action|null $mountedAction = null)
No description
bool
mountedFormComponentActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedFormComponentActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedFormComponentAction(int|null $actionNestingIndex = null)
No description
protected Form|null
getMountedFormComponentActionForm(int|null $actionNestingIndex = null, Action|null $mountedAction = null)
No description
Component|null
getMountedFormComponentActionComponent(int|null $actionNestingIndex = null)
No description
protected void
resetMountedFormComponentActionProperties()
No description
protected string|null
popMountedFormComponentAction()
No description
void
unmountFormComponentAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
closeFormComponentActionModal(bool $shouldCloseModal = true)
No description
protected void
openFormComponentActionModal()
No description
mixed
__get(string $property)
No description
void
dispatchFormEvent(mixed ...$args)
No description
void
fillFormDataForTesting(array $state = [])
No description
protected void
unsetMissingNumericArrayKeys(array $target, array $state)
No description
TemporaryUploadedFile|null
getFormComponentFileAttachment(string $statePath)
No description
string|null
getFormComponentFileAttachmentUrl(string $statePath)
No description
array
getFormSelectOptionLabels(string $statePath)
No description
string|null
getFormSelectOptionLabel(string $statePath)
No description
array
getFormSelectOptions(string $statePath)
No description
array
getFormSelectSearchResults(string $statePath, string $search)
No description
void
deleteUploadedFile(string $statePath, string $fileKey)
No description
array|null
getFormUploadedFiles(string $statePath)
No description
void
removeFormUploadedFile(string $statePath, string $fileKey)
No description
void
reorderFormUploadedFiles(string $statePath, array $fileKeys)
No description
array
validate($rules = null, array<string,string> $messages = [], array<string,string> $attributes = [])
No description
array<string,mixed>
validateOnly(string $field, array<string,array> $rules = null, array<string,string> $messages = [], array<string,string> $attributes = [], array<string,string> $dataOverrides = [])
No description
protected void
onValidationError(ValidationException $exception)
No description
protected array
prepareForValidation(array<string,mixed> $attributes)
No description
string|null
getFilamentTranslatableContentDriver()
No description
TranslatableContentDriver|null
makeFilamentTranslatableContentDriver()
No description
string|null
getActiveFormsLocale()
No description
void
updatingInteractsWithForms(string $statePath)
No description
mixed
getOldFormState(string $statePath)
No description
void
updatedInteractsWithForms(string $statePath)
No description
protected Form|null
cacheForm(string $name, Form|Closure|null $form)
No description
protected array
cacheForms()
No description
array
getTraitForms()
No description
protected bool
hasCachedForm(string $name)
No description
Form|null
getForm(string $name)
No description
array
getCachedForms()
No description
protected array
getForms()
No description
protected Model|string|null
getFormModel()
deprecated
deprecated
No description
protected array
getFormSchema()
deprecated
deprecated
No description
protected string|null
getFormContext()
deprecated
deprecated
No description
string|null
getFormStatePath()
No description
array
getRules()
No description
protected array
getValidationAttributes()
No description
protected Form
makeForm()
No description
bool
isCachingForms()
No description
Infolist
mountedFormComponentActionInfolist()
No description
Infolist|null
getInfolist(string $name)
No description
array
getCachedInfolists()
No description
protected bool
hasCachedInfolist(string $name)
No description
mixed
callMountedInfolistAction(array $arguments = [])
No description
mixed
mountInfolistAction(string $name, string|null $component = null, string|null $infolist = null)
No description
protected void
openInfolistActionModal()
No description
bool
mountedInfolistActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedInfolistActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedInfolistAction()
No description
Component|null
getMountedInfolistActionComponent()
No description
Form|null
getMountedInfolistActionForm(Action|null $mountedAction = null)
No description
void
unmountInfolistAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected Infolist
makeInfolist()
No description
protected array
getInteractsWithInfolistsForms()
No description
View
render()
No description
string
getView()
No description
in
Page at line 46
string
getLayout()
No description
Htmlable
getHeading()
No description
Htmlable|null
getSubheading()
No description
Htmlable
getTitle()
No description
MaxWidth|string|null
getMaxContentWidth()
No description
array
getExtraBodyAttributes()
No description
protected array
getLayoutData()
No description
protected array
getViewData()
No description
protected void
halt()
No description
protected void
callHook(string $hook)
No description
static void
stickyFormActions(bool $condition = true)
No description
static void
alignFormActionsStart()
No description
static void
alignFormActionsCenter()
No description
static void
alignFormActionsEnd()
No description
static void
alignFormActionsLeft()
deprecated
deprecated
No description
static void
alignFormActionsRight()
deprecated
deprecated
No description
Alignment
getFormActionsAlignment()
No description
bool
areFormActionsSticky()
No description
bool
hasInlineLabels()
No description
static void
formActionsAlignment(Alignment $alignment)
No description
static void
inlineLabels(bool $condition = true)
No description
in
Page at line 169
array
getRenderHookScopes()
No description
void
mountCanAuthorizeAccess()
No description
static bool
canAccess()
No description
static void
registerRoutes(Panel $panel)
No description
static void
routes(Panel $panel)
No description
static string
getRoutePath()
No description
static string
getRelativeRouteName()
No description
static string
getSlug()
No description
static string|array
getRouteMiddleware(Panel $panel)
No description
static string|array
getWithoutRouteMiddleware(Panel $panel)
No description
static string
getEmailVerifiedMiddleware(Panel $panel)
No description
static bool
isEmailVerificationRequired(Panel $panel)
No description
static string
getTenantSubscribedMiddleware(Panel $panel)
No description
static bool
isTenantSubscriptionRequired(Panel $panel)
No description
array
getSubNavigation()
No description
SubNavigationPosition
getSubNavigationPosition()
No description
array
getCachedSubNavigation()
No description
array
generateNavigationItems(array $components)
No description
array
getSubNavigationParameters()
No description
void
bootedInteractsWithHeaderActions()
No description
protected void
cacheHeaderActions()
No description
array
getCachedHeaderActions()
No description
protected array
getHeaderActions()
No description
protected array
getActions()
deprecated
deprecated
No description
in
Page at line 62
static string
getUrl(array $parameters = [], bool $isAbsolute = true, string|null $panel = null, Model|null $tenant = null)
No description
in
Page at line 76
static void
registerNavigationItems()
No description
in
Page at line 36
static array
getNavigationItems(array $urlParameters = [])
No description
in
Page at line 113
static string
getNavigationItemActiveRoutePattern()
No description
in
Page at line 26
static string
getRouteName(string|null $panel = null)
No description
array
getBreadcrumbs()
No description
in
Page at line 140
static string|null
getNavigationGroup()
No description
in
Page at line 145
static string|null
getNavigationParentItem()
No description
in
Page at line 150
static Htmlable|null
getActiveNavigationIcon()
No description
static Htmlable|null
getNavigationIcon()
No description
in
Page at line 160
static string
getNavigationLabel()
No description
in
Page at line 168
static string|null
getNavigationBadge()
No description
in
Page at line 176
static string|array|null
getNavigationBadgeColor()
No description
in
Page at line 181
static string|null
getNavigationBadgeTooltip()
No description
in
Page at line 186
static int|null
getNavigationSort()
No description
in
Page at line 54
static string
getNavigationUrl(array $parameters = [])
No description
in
Page at line 196
View|null
getFooter()
No description
in
Page at line 201
View|null
getHeader()
No description
in
Page at line 209
protected array
getHeaderWidgets()
No description
in
Page at line 217
array
getVisibleHeaderWidgets()
No description
in
Page at line 225
int|string|array
getHeaderWidgetsColumns()
No description
in
Page at line 233
protected array
getFooterWidgets()
No description
in
Page at line 241
array
getVisibleFooterWidgets()
No description
in
Page at line 250
protected array
filterVisibleWidgets(array $widgets)
No description
in
Page at line 259
protected string
normalizeWidgetClass(WidgetConfiguration $widget)
No description
in
Page at line 271
int|string|array
getFooterWidgetsColumns()
No description
array
getWidgetData()
No description
static bool
shouldRegisterNavigation(array $parameters = [])
No description
in
Page at line 289
static bool
isDiscovered()
No description
in
Page at line 185
static string|null
getCluster()
No description
in
Page at line 302
static string
prependClusterSlug(string $slug)
No description
in
Page at line 311
static string
prependClusterRouteBaseName(string $name)
No description
void
mountCanAuthorizeResourceAccess()
No description
static void
authorizeResourceAccess()
No description
in
Page at line 67
static string
getResourcePageName()
No description
in
Page at line 80
static PageRegistration
route(string $path)
No description
string|null
getBreadcrumb()
No description
in
Page at line 153
string
getModel()
No description
in
Page at line 161
static string
getResource()
No description
bool
hasDatabaseTransactions()
No description
protected void
beginDatabaseTransaction()
No description
protected void
commitDatabaseTransaction()
No description
protected void
rollBackDatabaseTransaction()
No description
protected mixed
wrapInDatabaseTransaction(Closure $callback)
No description
array
getRelationManagers()
No description
protected string
normalizeRelationManagerClass(RelationManagerConfiguration $manager)
No description
void
renderingHasRelationManagers()
No description
bool
hasCombinedRelationManagerTabsWithContent()
No description
string|null
getContentTabLabel()
No description
string|null
getContentTabIcon()
No description
ContentTabPosition|null
getContentTabPosition()
No description
protected Model
resolveRecord(int|string $key)
No description
Model
getRecord()
No description
Htmlable
getRecordTitle()
No description
void
mountHasUnsavedDataChangesAlert()
No description
protected void
rememberData()
No description
protected bool
hasUnsavedDataChangesAlert()
No description
void
bootedInteractsWithFormActions()
No description
protected void
cacheFormActions()
No description
array
getCachedFormActions()
No description
protected array
getFormActions()
No description
protected bool
hasFullWidthFormActions()
No description
void
mount(int|string $record)
No description
protected void
authorizeAccess()
No description
protected void
fillForm()
No description
protected void
fillFormWithDataAndCallHooks(Model $record, array $extraData = [])
internal | Never override or call this method. If you completely override `fillForm()`, copy the contents of this method into your override. |
No description
void
refreshFormData(array $attributes)
No description
protected array
mutateFormDataBeforeFill(array $data)
No description
void
save(bool $shouldRedirect = true, bool $shouldSendSavedNotification = true)
No description
void
saveFormComponentOnly(Component $component)
No description
protected Notification|null
getSavedNotification()
No description
protected string|null
getSavedNotificationTitle()
No description
protected string|null
getSavedNotificationMessage()
deprecated
deprecated
No description
protected Model
handleRecordUpdate(Model $record, array $data)
No description
protected array
mutateFormDataBeforeSave(array $data)
No description
protected void
configureViewAction(ViewAction $action)
No description
protected void
configureForceDeleteAction(ForceDeleteAction $action)
No description
protected void
configureReplicateAction(ReplicateAction $action)
No description
protected void
configureRestoreAction(RestoreAction $action)
No description
protected void
configureDeleteAction(DeleteAction $action)
No description
protected Action
getSaveFormAction()
No description
protected Action
getSubmitFormAction()
No description
protected Action
getCancelFormAction()
No description
protected string|null
getRedirectUrl()
No description