CreateRecord
class CreateRecord 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 | |
protected array|null | $cachedFormActions | from HasFormActions | |
$record | |||
$data | |||
string|null | $previousUrl | ||
static protected bool | $canCreateAnother | ||
ComponentContainer | $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
Details
void
notify(string $status, string $message, bool $isAfterRedirect = false)
No description
protected bool
hasMountedFormComponentAction()
No description
protected ComponentContainer|null
getMountedFormComponentActionForm()
No description
callMountedFormComponentAction(string|null $arguments = null)
No description
Action|Closure|null
getMountedFormComponentAction()
No description
mountFormComponentAction(string $component, string $name, array $arguments = [])
No description
Component|null
getMountedFormComponentActionComponent()
No description
protected array
getFormComponentActions()
No description
__get($property)
No description
protected 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
protected void
onValidationError(ValidationException $exception)
No description
validateOnly($field, $rules = null, $messages = [], $attributes = [])
No description
string|null
getActiveFormLocale()
No description
protected void
callBeforeAndAfterSyncHooks($name, $value, $callback)
No description
protected ComponentContainer|null
cacheForm(string $name, ComponentContainer|Closure|null $form)
No description
protected array
cacheForms()
No description
protected array
getUncachedForms()
No description
protected array
getTraitForms()
No description
protected bool
hasCachedForm($name)
No description
protected ComponentContainer|null
getCachedForm($name)
No description
protected array
getCachedForms()
No description
protected Model|string|null
getFormModel()
No description
protected array
getFormSchema()
No description
protected array
getForms()
No description
protected string|null
getFormContext()
No description
protected string|null
getFormStatePath()
No description
protected array
getRules()
No description
protected array
getValidationAttributes()
No description
protected ComponentContainer
makeForm()
No description
callMountedAction(string|null $arguments = null)
No description
mountAction(string $name)
No description
array
getCachedActions()
No description
protected void
cacheActions()
No description
protected void
configureAction(Action $action)
No description
Action|null
getMountedAction()
No description
protected array
getHasActionsForms()
No description
ComponentContainer|null
getMountedActionForm()
No description
protected Model|string|null
getMountedActionFormModel()
No description
Action|null
getCachedAction(string $name)
No description
protected array
getActions()
No description
in
Page at line 56
static void
registerNavigationItems()
No description
in
Page at line 65
static array
getNavigationItems()
No description
in
Page at line 79
static string
getRouteName()
No description
in
Page at line 86
static Closure
getRoutes()
No description
in
Page at line 98
static string|array
getMiddlewares()
No description
in
Page at line 103
static string|array
getWithoutRouteMiddleware()
No description
in
Page at line 108
static string
getSlug()
No description
in
Page at line 115
static string
getUrl(array $parameters = [], bool $isAbsolute = true)
No description
in
Page at line 120
View
render()
No description
in
Page at line 26
protected array
getBreadcrumbs()
No description
in
Page at line 131
static protected string|null
getNavigationGroup()
No description
in
Page at line 136
static protected string
getNavigationIcon()
No description
in
Page at line 141
static protected string
getActiveNavigationIcon()
No description
in
Page at line 146
static protected string
getNavigationLabel()
No description
in
Page at line 154
static protected string|null
getNavigationBadge()
No description
in
Page at line 159
static protected string|null
getNavigationBadgeColor()
No description
in
Page at line 164
static protected int|null
getNavigationSort()
No description
in
Page at line 169
static protected string
getNavigationUrl()
No description
in
Page at line 179
protected View|null
getFooter()
No description
in
Page at line 184
protected View|null
getHeader()
No description
in
Page at line 189
protected array
getHeaderWidgets()
No description
in
Page at line 194
protected array
getVisibleHeaderWidgets()
No description
in
Page at line 199
protected int|string|array
getHeaderWidgetsColumns()
No description
in
Page at line 204
protected array
getFooterWidgets()
No description
in
Page at line 209
protected array
getVisibleFooterWidgets()
No description
in
Page at line 214
protected array
filterVisibleWidgets(array $widgets)
No description
in
Page at line 219
protected int|string|array
getFooterWidgetsColumns()
No description
in
Page at line 224
protected Htmlable
getHeading()
No description
in
Page at line 229
protected Htmlable|null
getSubheading()
No description
protected Htmlable
getTitle()
No description
in
Page at line 242
protected string|null
getMaxContentWidth()
No description
in
Page at line 247
protected array
getLayoutData()
No description
in
Page at line 256
protected array
getViewData()
No description
in
Page at line 261
static protected bool
shouldRegisterNavigation()
No description
in
Page at line 275
protected void
halt()
No description
in
Page at line 13
static array
route(string $path)
No description
string|null
getBreadcrumb()
No description
in
Page at line 38
static void
authorizeResourceAccess()
No description
in
Page at line 43
string
getModel()
No description
in
Page at line 48
static string
getResource()
No description
in
Page at line 53
protected void
callHook(string $hook)
No description
protected array
getCachedFormActions()
No description
protected void
cacheFormActions()
No description
Action|null
getCachedFormAction(string $name)
No description
protected array
getFormActions()
No description
protected bool
hasFullWidthFormActions()
No description
protected Form
getResourceForm(int|null $columns = null, bool $isDisabled = false)
No description
protected Form
getBaseResourceForm(int|null $columns = null, bool $isDisabled = false)
No description
void
mount()
No description
protected void
authorizeAccess()
No description
protected void
fillForm()
No description
void
create(bool $another = false)
No description
protected Notification|null
getCreatedNotification()
No description
protected string|null
getCreatedNotificationTitle()
No description
protected string|null
getCreatedNotificationMessage()
deprecated
deprecated
No description
void
createAnother()
No description
protected Model
handleRecordCreation(array $data)
No description
protected array
mutateFormDataBeforeCreate(array $data)
No description
protected Action
getCreateFormAction()
No description
protected Action
getSubmitFormAction()
No description
protected Action
getCreateAnotherFormAction()
No description
protected Action
getCancelFormAction()
No description
protected string
getRedirectUrl()
No description
static protected bool
canCreateAnother()
No description
static void
disableCreateAnother()
No description