class EditRecord extends Page implements HasFormActions (View source)

Traits

Properties

$mountedFormComponentAction from  HasFormComponentActions
$mountedFormComponentActionArguments from  HasFormComponentActions
$mountedFormComponentActionData from  HasFormComponentActions
$mountedFormComponentActionComponent from  HasFormComponentActions
ComponentContainer $mountedFormComponentActionForm from  HasFormComponentActions
array $componentFileAttachments from  InteractsWithForms
protected array|null $cachedForms from  InteractsWithForms
protected bool $hasCachedForms from  InteractsWithForms
protected bool $isCachingForms from  InteractsWithForms
protected bool $hasModalViewRendered from  InteractsWithForms
$mountedAction from  HasActions
$mountedActionData from  HasActions
protected array|null $cachedActions from  HasActions
ComponentContainer $mountedActionForm from  HasActions
static protected string $layout from  Page
static protected string|null $navigationGroup 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 $slug from  Page
static protected string|null $title from  Page
protected string|null $heading from  Page
protected string|null $subheading from  Page
static protected string $view
static protected string|array $middlewares from  Page
static protected string|array $withoutRouteMiddleware from  Page
static Closure|null $reportValidationErrorUsing from  Page
protected string|null $maxContentWidth from  Page
static protected string|null $breadcrumb from  Page
static protected string $resource from  Page
$activeRelationManager from  HasRelationManagers
$record from  InteractsWithRecord
protected array|null $cachedFormActions from  HasFormActions
$data
string|null $previousUrl
protected $queryString
ComponentContainer $form

Methods

void
notify(string $status, string $message, bool $isAfterRedirect = false)

No description

ComponentContainer|null
callMountedFormComponentAction(string|null $arguments = null)

No description

Action|Closure|null
mountFormComponentAction(string $component, string $name, array $arguments = [])

No description

array
getFormComponentActions()

No description

__get($property)

No description

View|null
getModalViewOnce()

No description

void
dispatchFormEvent(...$args)

No description

TemporaryUploadedFile|null
getComponentFileAttachment(string $statePath)

No description

string|null
getComponentFileAttachmentUrl(string $statePath)

No description

array
getSelectOptionLabels(string $statePath)

No description

string|null
getSelectOptionLabel(string $statePath)

No description

array
getSelectOptions(string $statePath)

No description

array
getSelectSearchResults(string $statePath, string $search)

No description

void
deleteUploadedFile(string $statePath, string $fileKey)

No description

array|null
getUploadedFileUrls(string $statePath)

No description

void
removeUploadedFile(string $statePath, string $fileKey)

No description

void
reorderUploadedFiles(string $statePath, array $fileKeys)

No description

validate($rules = null, $messages = [], $attributes = [])

No description

void
onValidationError(ValidationException $exception)

No description

validateOnly($field, $rules = null, $messages = [], $attributes = [])

No description

string|null
getActiveFormLocale()

No description

void
callBeforeAndAfterSyncHooks($name, $value, $callback)

No description

ComponentContainer|null
cacheForm(string $name, ComponentContainer|Closure|null $form)

No description

array
cacheForms()

No description

array
getUncachedForms()

No description

array
getTraitForms()

No description

bool
hasCachedForm($name)

No description

ComponentContainer|null
getCachedForm($name)

No description

array
getCachedForms()

No description

Model|string|null
getFormModel()

No description

array
getFormSchema()

No description

array
getForms()

No description

string|null
getFormContext()

No description

string|null
getFormStatePath()

No description

array
getRules()

No description

array
getValidationAttributes()

No description

callMountedAction(string|null $arguments = null)

No description

mountAction(string $name)

No description

array
getCachedActions()

No description

void
cacheActions()

No description

void
configureAction(Action $action)

No description

Action|null
getMountedAction()

No description

array
getHasActionsForms()

No description

ComponentContainer|null
getMountedActionForm()

No description

Model|string|null
getMountedActionFormModel()

No description

Action|null
getCachedAction(string $name)

No description

array
getActions()

No description

static void
registerNavigationItems()

No description

from  Page
static array
getNavigationItems()

No description

from  Page
static string
getRouteName()

No description

from  Page
static Closure
getRoutes()

No description

from  Page
static string|array
getMiddlewares()

No description

from  Page
static string|array
getWithoutRouteMiddleware()

No description

from  Page
static string
getSlug()

No description

from  Page
static string
getUrl(array $parameters = [], bool $isAbsolute = true)

No description

from  Page
View
render()

No description

from  Page
array
getBreadcrumbs()

No description

static string|null
getNavigationGroup()

No description

from  Page
static string
getNavigationIcon()

No description

from  Page
static string
getActiveNavigationIcon()

No description

from  Page
static string
getNavigationLabel()

No description

from  Page
static string|null
getNavigationBadge()

No description

from  Page
static string|null
getNavigationBadgeColor()

No description

from  Page
static int|null
getNavigationSort()

No description

from  Page
static string
getNavigationUrl()

No description

from  Page
View|null
getFooter()

No description

from  Page
View|null
getHeader()

No description

from  Page
array
getHeaderWidgets()

No description

from  Page
array
getVisibleHeaderWidgets()

No description

from  Page
int|string|array
getHeaderWidgetsColumns()

No description

from  Page
array
getFooterWidgets()

No description

from  Page
array
getVisibleFooterWidgets()

No description

from  Page
array
filterVisibleWidgets(array $widgets)

No description

from  Page
int|string|array
getFooterWidgetsColumns()

No description

from  Page
Htmlable
getHeading()

No description

from  Page
Htmlable|null
getSubheading()

No description

from  Page
Htmlable
getTitle()

No description

string|null
getMaxContentWidth()

No description

from  Page
array
getLayoutData()

No description

from  Page
array
getViewData()

No description

from  Page
static bool
shouldRegisterNavigation()

No description

from  Page
void
halt()

No description

from  Page
static array
route(string $path)

No description

from  Page
string|null
getBreadcrumb()

No description

static void
authorizeResourceAccess()

No description

from  Page
string
getModel()

No description

from  Page
static string
getResource()

No description

from  Page
void
callHook(string $hook)

No description

from  Page
array
getRelationManagers()

No description

void
mountHasRelationManagers()

No description

string|null
getFormTabLabel()

No description

Model
resolveRecord($key)

No description

Model
getRecord()

No description

Htmlable
getRecordTitle()

No description

array
getCachedFormActions()

No description

void
cacheFormActions()

No description

Action|null
getCachedFormAction(string $name)

No description

array
getFormActions()

No description

bool
hasFullWidthFormActions()

No description

getResourceForm(int|null $columns = null, bool $isDisabled = false)

No description

getBaseResourceForm(int|null $columns = null, bool $isDisabled = false)

No description

form(Form $form)

No description

void
mount($record)

No description

void
authorizeAccess()

No description

void
fillForm()

No description

void
refreshFormData(array $attributes)

No description

array
mutateFormDataBeforeFill(array $data)

No description

void
save(bool $shouldRedirect = true)

No description

Notification|null
getSavedNotification()

No description

string|null
getSavedNotificationTitle()

No description

string|null
getSavedNotificationMessage() deprecated

No description

Model
handleRecordUpdate(Model $record, array $data)

No description

array
mutateFormDataBeforeSave(array $data)

No description

void
openDeleteModal()

No description

void
delete() deprecated

No description

Notification|null
getDeletedNotification()

No description

string|null
getDeletedNotificationTitle()

No description

string|null
getDeletedNotificationMessage() deprecated

No description

void
configureViewAction(ViewAction $action)

No description

getViewAction() deprecated

No description

void
void
configureReplicateAction(ReplicateAction $action)

No description

void
configureRestoreAction(RestoreAction $action)

No description

void
configureDeleteAction(DeleteAction $action)

No description

getDeleteAction() deprecated

No description

getSaveFormAction()

No description

getSubmitFormAction()

No description

getCancelFormAction()

No description

string|null
getRedirectUrl()

No description

string|null
getDeleteRedirectUrl() deprecated

No description

Details

void notify(string $status, string $message, bool $isAfterRedirect = false)

No description

Parameters

string $status
string $message
bool $isAfterRedirect

Return Value

void

protected bool hasMountedFormComponentAction()

No description

Return Value

bool

protected ComponentContainer|null getMountedFormComponentActionForm()

No description

Return Value

ComponentContainer|null

callMountedFormComponentAction(string|null $arguments = null)

No description

Parameters

string|null $arguments

Action|Closure|null getMountedFormComponentAction()

No description

Return Value

Action|Closure|null

mountFormComponentAction(string $component, string $name, array $arguments = [])

No description

Parameters

string $component
string $name
array $arguments

Component|null getMountedFormComponentActionComponent()

No description

Return Value

Component|null

protected array getFormComponentActions()

No description

Return Value

array

__get($property)

No description

Parameters

$property

protected View|null getModalViewOnce()

No description

Return Value

View|null

void dispatchFormEvent(...$args)

No description

Parameters

...$args

Return Value

void

TemporaryUploadedFile|null getComponentFileAttachment(string $statePath)

No description

Parameters

string $statePath

Return Value

TemporaryUploadedFile|null

string|null getComponentFileAttachmentUrl(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

array getSelectOptionLabels(string $statePath)

No description

Parameters

string $statePath

Return Value

array

string|null getSelectOptionLabel(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

array getSelectOptions(string $statePath)

No description

Parameters

string $statePath

Return Value

array

array getSelectSearchResults(string $statePath, string $search)

No description

Parameters

string $statePath
string $search

Return Value

array

void deleteUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

void

array|null getUploadedFileUrls(string $statePath)

No description

Parameters

string $statePath

Return Value

array|null

void removeUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

void

void reorderUploadedFiles(string $statePath, array $fileKeys)

No description

Parameters

string $statePath
array $fileKeys

Return Value

void

validate($rules = null, $messages = [], $attributes = [])

No description

Parameters

$rules
$messages
$attributes

protected void onValidationError(ValidationException $exception)

No description

Parameters

ValidationException $exception

Return Value

void

validateOnly($field, $rules = null, $messages = [], $attributes = [])

No description

Parameters

$field
$rules
$messages
$attributes

string|null getActiveFormLocale()

No description

Return Value

string|null

protected void callBeforeAndAfterSyncHooks($name, $value, $callback)

No description

Parameters

$name
$value
$callback

Return Value

void

protected ComponentContainer|null cacheForm(string $name, ComponentContainer|Closure|null $form)

No description

Parameters

string $name
ComponentContainer|Closure|null $form

Return Value

ComponentContainer|null

protected array cacheForms()

No description

Return Value

array

protected array getUncachedForms()

No description

Return Value

array

protected array getTraitForms()

No description

Return Value

array

protected bool hasCachedForm($name)

No description

Parameters

$name

Return Value

bool

protected ComponentContainer|null getCachedForm($name)

No description

Parameters

$name

Return Value

ComponentContainer|null

protected array getCachedForms()

No description

Return Value

array

protected Model|string|null getFormModel()

No description

Return Value

Model|string|null

protected array getFormSchema()

No description

Return Value

array

protected array getForms()

No description

Return Value

array

protected string|null getFormContext()

No description

Return Value

string|null

protected string|null getFormStatePath()

No description

Return Value

string|null

protected array getRules()

No description

Return Value

array

protected array getValidationAttributes()

No description

Return Value

array

protected ComponentContainer makeForm()

No description

Return Value

ComponentContainer

callMountedAction(string|null $arguments = null)

No description

Parameters

string|null $arguments

mountAction(string $name)

No description

Parameters

string $name

array getCachedActions()

No description

Return Value

array

protected void cacheActions()

No description

Return Value

void

protected void configureAction(Action $action)

No description

Parameters

Action $action

Return Value

void

Action|null getMountedAction()

No description

Return Value

Action|null

protected array getHasActionsForms()

No description

Return Value

array

ComponentContainer|null getMountedActionForm()

No description

Return Value

ComponentContainer|null

protected Model|string|null getMountedActionFormModel()

No description

Return Value

Model|string|null

Action|null getCachedAction(string $name)

No description

Parameters

string $name

Return Value

Action|null

protected array getActions()

No description

Return Value

array

static void registerNavigationItems()

No description

Return Value

void

static array getNavigationItems()

No description

Return Value

array

static string getRouteName()

No description

Return Value

string

static Closure getRoutes()

No description

Return Value

Closure

static string|array getMiddlewares()

No description

Return Value

string|array

static string|array getWithoutRouteMiddleware()

No description

Return Value

string|array

static string getSlug()

No description

Return Value

string

static string getUrl(array $parameters = [], bool $isAbsolute = true)

No description

Parameters

array $parameters
bool $isAbsolute

Return Value

string

View render()

No description

Return Value

View

protected array getBreadcrumbs()

No description

Return Value

array

static protected string|null getNavigationGroup()

No description

Return Value

string|null

static protected string getNavigationIcon()

No description

Return Value

string

static protected string getActiveNavigationIcon()

No description

Return Value

string

static protected string getNavigationLabel()

No description

Return Value

string

static protected string|null getNavigationBadge()

No description

Return Value

string|null

static protected string|null getNavigationBadgeColor()

No description

Return Value

string|null

static protected int|null getNavigationSort()

No description

Return Value

int|null

static protected string getNavigationUrl()

No description

Return Value

string

protected View|null getFooter()

No description

Return Value

View|null

protected View|null getHeader()

No description

Return Value

View|null

protected array getHeaderWidgets()

No description

Return Value

array

protected array getVisibleHeaderWidgets()

No description

Return Value

array

protected int|string|array getHeaderWidgetsColumns()

No description

Return Value

int|string|array

protected array getFooterWidgets()

No description

Return Value

array

protected array getVisibleFooterWidgets()

No description

Return Value

array

protected array filterVisibleWidgets(array $widgets)

No description

Parameters

array $widgets

Return Value

array

protected int|string|array getFooterWidgetsColumns()

No description

Return Value

int|string|array

protected Htmlable getHeading()

No description

Return Value

Htmlable

protected Htmlable|null getSubheading()

No description

Return Value

Htmlable|null

protected Htmlable getTitle()

No description

Return Value

Htmlable

protected string|null getMaxContentWidth()

No description

Return Value

string|null

protected array getLayoutData()

No description

Return Value

array

protected array getViewData()

No description

Return Value

array

static protected bool shouldRegisterNavigation()

No description

Return Value

bool

protected void halt()

No description

Return Value

void

static array route(string $path)

No description

Parameters

string $path

Return Value

array

string|null getBreadcrumb()

No description

Return Value

string|null

static void authorizeResourceAccess()

No description

Return Value

void

string getModel()

No description

Return Value

string

static string getResource()

No description

Return Value

string

protected void callHook(string $hook)

No description

Parameters

string $hook

Return Value

void

protected array getRelationManagers()

No description

Return Value

array

void mountHasRelationManagers()

No description

Return Value

void

bool hasCombinedRelationManagerTabsWithForm()

No description

Return Value

bool

string|null getFormTabLabel()

No description

Return Value

string|null

protected Model resolveRecord($key)

No description

Parameters

$key

Return Value

Model

Model getRecord()

No description

Return Value

Model

Htmlable getRecordTitle()

No description

Return Value

Htmlable

protected array getCachedFormActions()

No description

Return Value

array

protected void cacheFormActions()

No description

Return Value

void

Action|null getCachedFormAction(string $name)

No description

Parameters

string $name

Return Value

Action|null

protected array getFormActions()

No description

Return Value

array

protected bool hasFullWidthFormActions()

No description

Return Value

bool

protected Form getResourceForm(int|null $columns = null, bool $isDisabled = false)

No description

Parameters

int|null $columns
bool $isDisabled

Return Value

Form

protected Form getBaseResourceForm(int|null $columns = null, bool $isDisabled = false)

No description

Parameters

int|null $columns
bool $isDisabled

Return Value

Form

protected Form form(Form $form)

No description

Parameters

Form $form

Return Value

Form

void mount($record)

No description

Parameters

$record

Return Value

void

protected void authorizeAccess()

No description

Return Value

void

protected void fillForm()

No description

Return Value

void

protected void refreshFormData(array $attributes)

No description

Parameters

array $attributes

Return Value

void

protected array mutateFormDataBeforeFill(array $data)

No description

Parameters

array $data

Return Value

array

void save(bool $shouldRedirect = true)

No description

Parameters

bool $shouldRedirect

Return Value

void

protected Notification|null getSavedNotification()

No description

Return Value

Notification|null

protected string|null getSavedNotificationTitle()

No description

Return Value

string|null

protected string|null getSavedNotificationMessage() deprecated

deprecated Use `getSavedNotificationTitle()` instead.

No description

Return Value

string|null

protected Model handleRecordUpdate(Model $record, array $data)

No description

Parameters

Model $record
array $data

Return Value

Model

protected array mutateFormDataBeforeSave(array $data)

No description

Parameters

array $data

Return Value

array

void openDeleteModal()

No description

Return Value

void

void delete() deprecated

deprecated Use `->action()` on the action instead.

No description

Return Value

void

protected Notification|null getDeletedNotification()

No description

Return Value

Notification|null

protected string|null getDeletedNotificationTitle()

No description

Return Value

string|null

protected string|null getDeletedNotificationMessage() deprecated

deprecated Use `getDeletedNotificationTitle()` instead.

No description

Return Value

string|null

protected void configureViewAction(ViewAction $action)

No description

Parameters

ViewAction $action

Return Value

void

protected Action getViewAction() deprecated

deprecated Actions are no longer pre-defined.

No description

Return Value

Action

protected void configureForceDeleteAction(ForceDeleteAction $action)

No description

Parameters

ForceDeleteAction $action

Return Value

void

protected void configureReplicateAction(ReplicateAction $action)

No description

Parameters

ReplicateAction $action

Return Value

void

protected void configureRestoreAction(RestoreAction $action)

No description

Parameters

RestoreAction $action

Return Value

void

protected void configureDeleteAction(DeleteAction $action)

No description

Parameters

DeleteAction $action

Return Value

void

protected Action getDeleteAction() deprecated

deprecated Actions are no longer pre-defined.

No description

Return Value

Action

protected Action getSaveFormAction()

No description

Return Value

Action

protected Action getSubmitFormAction()

No description

Return Value

Action

protected Action getCancelFormAction()

No description

Return Value

Action

protected string|null getRedirectUrl()

No description

Return Value

string|null

protected string|null getDeleteRedirectUrl() deprecated

deprecated Use `->successRedirectUrl()` on the action instead.

No description

Return Value

string|null