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

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

from  Page
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
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()

No description

void
authorizeAccess()

No description

void
fillForm()

No description

void
create(bool $another = false)

No description

Notification|null
getCreatedNotification()

No description

string|null
getCreatedNotificationTitle()

No description

string|null
getCreatedNotificationMessage() deprecated

No description

void
createAnother()

No description

Model
handleRecordCreation(array $data)

No description

array
mutateFormDataBeforeCreate(array $data)

No description

getCreateFormAction()

No description

getSubmitFormAction()

No description

getCancelFormAction()

No description

string
getRedirectUrl()

No description

static bool
canCreateAnother()

No description

static void
disableCreateAnother()

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 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()

No description

Return Value

void

protected void authorizeAccess()

No description

Return Value

void

protected void fillForm()

No description

Return Value

void

void create(bool $another = false)

No description

Parameters

bool $another

Return Value

void

protected Notification|null getCreatedNotification()

No description

Return Value

Notification|null

protected string|null getCreatedNotificationTitle()

No description

Return Value

string|null

protected string|null getCreatedNotificationMessage() deprecated

deprecated Use `getCreatedNotificationTitle()` instead.

No description

Return Value

string|null

void createAnother()

No description

Return Value

void

protected Model handleRecordCreation(array $data)

No description

Parameters

array $data

Return Value

Model

protected array mutateFormDataBeforeCreate(array $data)

No description

Parameters

array $data

Return Value

array

protected Action getCreateFormAction()

No description

Return Value

Action

protected Action getSubmitFormAction()

No description

Return Value

Action

protected Action getCreateAnotherFormAction()

No description

Return Value

Action

protected Action getCancelFormAction()

No description

Return Value

Action

protected string getRedirectUrl()

No description

Return Value

string

static protected bool canCreateAnother()

No description

Return Value

bool

static void disableCreateAnother()

No description

Return Value

void