class CreateRecord 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 $savedDataHash from  HasUnsavedDataChangesAlert
protected bool|null $hasUnsavedDataChangesAlert from  HasUnsavedDataChangesAlert
protected array $cachedFormActions from  InteractsWithFormActions
Model|null $record
array<string,mixed> $data
string|null $previousUrl
static protected bool $canCreateAnother
Form $form

Methods

mixed
callMountedAction(array $arguments = [])

No description

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

cacheAction(Action $action)

No description

void
mergeCachedActions(array $actions)

No description

void
configureAction(Action $action)

No description

Action|null
getMountedAction()

No description

Form|null
getMountedActionForm(Action|null $mountedAction = null)

No description

Model|string|null
getMountedActionFormModel()

No description

Action|null
getAction(string|array $name)

No description

Action|null
getMountableModalActionFromAction(Action $action, array $modalActionNames)

No description

string|null
popMountedAction()

No description

void
unmountAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

void
cacheMountedActionForm(Action|null $mountedAction = null)

No description

void
closeActionModal()

No description

void
openActionModal()

No description

string|null
getActiveActionsLocale()

No description

mixed
callMountedFormComponentAction(array $arguments = [])

No description

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

No description

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

Form|null
getMountedFormComponentActionForm(int|null $actionNestingIndex = null, Action|null $mountedAction = null)

No description

Component|null
getMountedFormComponentActionComponent(int|null $actionNestingIndex = null)

No description

string|null
void
unmountFormComponentAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

void
closeFormComponentActionModal(bool $shouldCloseModal = true)

No description

mixed
__get(string $property)

No description

void
dispatchFormEvent(mixed ...$args)

No description

void
fillFormDataForTesting(array $state = [])

No description

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

void
onValidationError(ValidationException $exception)

No description

array
prepareForValidation(array<string,mixed> $attributes)

No description

string|null
TranslatableContentDriver|null
string|null
getActiveFormsLocale()

No description

void
updatingInteractsWithForms(string $statePath)

No description

mixed
getOldFormState(string $statePath)

No description

void
updatedInteractsWithForms(string $statePath)

No description

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

No description

array
cacheForms()

No description

array
getTraitForms()

No description

bool
hasCachedForm(string $name)

No description

Form|null
getForm(string $name)

No description

array
getCachedForms()

No description

array
getForms()

No description

form(Form $form)

No description

Model|string|null
getFormModel() deprecated

No description

array
getFormSchema() deprecated

No description

string|null
getFormContext() deprecated

No description

string|null
getFormStatePath()

No description

array
getRules()

No description

array
getValidationAttributes()

No description

makeForm()

No description

bool
isCachingForms()

No description

Infolist|null
getInfolist(string $name)

No description

cacheInfolist(string $name, Infolist $infolist)

No description

array
getCachedInfolists()

No description

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

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
Form|null
getMountedInfolistActionForm(Action|null $mountedAction = null)

No description

void
unmountInfolistAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

View
render()

No description

from  BasePage
string
getView()

No description

from  BasePage
string
getLayout()

No description

from  Page
Htmlable
getHeading()

No description

from  BasePage
Htmlable|null
getSubheading()

No description

from  BasePage
Htmlable
getTitle()

No description

MaxWidth|string|null
getMaxContentWidth()

No description

from  BasePage
array
getExtraBodyAttributes()

No description

from  BasePage
array
getLayoutData()

No description

from  BasePage
array
getViewData()

No description

from  BasePage
void
halt()

No description

from  BasePage
void
callHook(string $hook)

No description

from  BasePage
static void
stickyFormActions(bool $condition = true)

No description

from  BasePage
static void
alignFormActionsStart()

No description

from  BasePage
static void
alignFormActionsCenter()

No description

from  BasePage
static void
alignFormActionsEnd()

No description

from  BasePage
static void
alignFormActionsLeft() deprecated

No description

from  BasePage
static void
alignFormActionsRight() deprecated

No description

from  BasePage
Alignment
getFormActionsAlignment()

No description

from  BasePage
bool
areFormActionsSticky()

No description

from  BasePage
bool
hasInlineLabels()

No description

from  BasePage
static void
formActionsAlignment(Alignment $alignment)

No description

from  BasePage
static void
inlineLabels(bool $condition = true)

No description

from  BasePage
array
getRenderHookScopes()

No description

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

No description

array
getHeaderActions()

No description

array
getActions() deprecated

No description

static string
getUrl(array $parameters = [], bool $isAbsolute = true, string|null $panel = null, Model|null $tenant = null)

No description

from  Page
static void
registerNavigationItems()

No description

from  Page
static array
getNavigationItems(array $urlParameters = [])

No description

from  Page
static string
from  Page
static string
getRouteName(string|null $panel = null)

No description

from  Page
array
getBreadcrumbs()

No description

from  Page
static string|null
getNavigationGroup()

No description

from  Page
static string|null
getNavigationParentItem()

No description

from  Page
static Htmlable|null
getActiveNavigationIcon()

No description

from  Page
static Htmlable|null
getNavigationIcon()

No description

from  Page
static string
getNavigationLabel()

No description

from  Page
static string|null
getNavigationBadge()

No description

from  Page
static string|array|null
getNavigationBadgeColor()

No description

from  Page
static string|null
getNavigationBadgeTooltip()

No description

from  Page
static int|null
getNavigationSort()

No description

from  Page
static string
getNavigationUrl(array $parameters = [])

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
string
normalizeWidgetClass(WidgetConfiguration $widget)

No description

from  Page
int|string|array
getFooterWidgetsColumns()

No description

from  Page
array
getWidgetData()

No description

from  Page
static bool
shouldRegisterNavigation(array $parameters = [])

No description

from  Page
static bool
isDiscovered()

No description

from  Page
static string|null
getCluster()

No description

from  Page
static string
prependClusterSlug(string $slug)

No description

from  Page
static string
prependClusterRouteBaseName(string $name)

No description

from  Page
static void
authorizeResourceAccess()

No description

static string
getResourcePageName()

No description

from  Page
route(string $path)

No description

from  Page
string|null
getBreadcrumb()

No description

string
getModel()

No description

from  Page
static string
getResource()

No description

from  Page
mixed
wrapInDatabaseTransaction(Closure $callback)

No description

void
rememberData()

No description

void
cacheFormActions()

No description

array
getCachedFormActions()

No description

array
getFormActions()

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

Model
associateRecordWithTenant(Model $record, Model $tenant)

No description

array
mutateFormDataBeforeCreate(array $data)

No description

getCreateFormAction()

No description

getSubmitFormAction()

No description

getCancelFormAction()

No description

string
getRedirectUrl()

No description

array
getRedirectUrlParameters()

No description

static bool
canCreateAnother()

No description

static void
disableCreateAnother()

No description

Model|null
getRecord()

No description

Details

mixed callMountedAction(array $arguments = [])

No description

Parameters

array $arguments

Return Value

mixed

protected void afterActionCalled()

No description

Return Value

void

mixed mountAction(string $name, array $arguments = [])

No description

Parameters

string $name
array $arguments

Return Value

mixed

void replaceMountedAction(string $name, array $arguments = [])

No description

Parameters

string $name
array $arguments

Return Value

void

bool mountedActionShouldOpenModal(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

bool mountedActionHasForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

Action cacheAction(Action $action)

No description

Parameters

Action $action

Return Value

Action

protected void mergeCachedActions(array $actions)

No description

Parameters

array $actions

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

No description

Return Value

array

Form|null getMountedActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

Form|null

protected Model|string|null getMountedActionFormModel()

No description

Return Value

Model|string|null

Action|null getAction(string|array $name)

No description

Parameters

string|array $name

Return Value

Action|null

protected Action|null getMountableModalActionFromAction(Action $action, array $modalActionNames)

No description

Parameters

Action $action
array $modalActionNames

Return Value

Action|null

protected string|null popMountedAction()

No description

Return Value

string|null

protected void resetMountedActionProperties()

No description

Return Value

void

void unmountAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCancelParentActions
bool $shouldCloseModal

Return Value

void

protected void cacheMountedActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

void

protected void closeActionModal()

No description

Return Value

void

protected void openActionModal()

No description

Return Value

void

string|null getActiveActionsLocale()

No description

Return Value

string|null

Infolist mountedActionInfolist()

No description

Return Value

Infolist

mixed callMountedFormComponentAction(array $arguments = [])

No description

Parameters

array $arguments

Return Value

mixed

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

No description

Parameters

string $component
string $name
array $arguments

Return Value

mixed

protected void cacheMountedFormComponentActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

void

bool mountedFormComponentActionShouldOpenModal(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

bool mountedFormComponentActionHasForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

Action|null getMountedFormComponentAction(int|null $actionNestingIndex = null)

No description

Parameters

int|null $actionNestingIndex

Return Value

Action|null

protected Form|null getMountedFormComponentActionForm(int|null $actionNestingIndex = null, Action|null $mountedAction = null)

No description

Parameters

int|null $actionNestingIndex
Action|null $mountedAction

Return Value

Form|null

Component|null getMountedFormComponentActionComponent(int|null $actionNestingIndex = null)

No description

Parameters

int|null $actionNestingIndex

Return Value

Component|null

protected void resetMountedFormComponentActionProperties()

No description

Return Value

void

protected string|null popMountedFormComponentAction()

No description

Return Value

string|null

void unmountFormComponentAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCancelParentActions
bool $shouldCloseModal

Return Value

void

protected void closeFormComponentActionModal(bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCloseModal

Return Value

void

protected void openFormComponentActionModal()

No description

Return Value

void

mixed __get(string $property)

No description

Parameters

string $property

Return Value

mixed

Exceptions

PropertyNotFoundException

void dispatchFormEvent(mixed ...$args)

No description

Parameters

mixed ...$args

Return Value

void

void fillFormDataForTesting(array $state = [])

No description

Parameters

array $state

Return Value

void

protected void unsetMissingNumericArrayKeys(array $target, array $state)

No description

Parameters

array $target
array $state

Return Value

void

TemporaryUploadedFile|null getFormComponentFileAttachment(string $statePath)

No description

Parameters

string $statePath

Return Value

TemporaryUploadedFile|null

string|null getFormComponentFileAttachmentUrl(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

array getFormSelectOptionLabels(string $statePath)

No description

Parameters

string $statePath

Return Value

array

string|null getFormSelectOptionLabel(string $statePath)

No description

Parameters

string $statePath

Return Value

string|null

array getFormSelectOptions(string $statePath)

No description

Parameters

string $statePath

Return Value

array

array getFormSelectSearchResults(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 getFormUploadedFiles(string $statePath)

No description

Parameters

string $statePath

Return Value

array|null

void removeFormUploadedFile(string $statePath, string $fileKey)

No description

Parameters

string $statePath
string $fileKey

Return Value

void

void reorderFormUploadedFiles(string $statePath, array $fileKeys)

No description

Parameters

string $statePath
array $fileKeys

Return Value

void

array validate($rules = null, array<string,string> $messages = [], array<string,string> $attributes = [])

No description

Parameters

$rules
array<string,string> $messages
array<string,string> $attributes

Return Value

array

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

Parameters

string $field
array<string,array> $rules
array<string,string> $messages
array<string,string> $attributes
array<string,string> $dataOverrides

Return Value

array<string,mixed>

protected void onValidationError(ValidationException $exception)

No description

Parameters

ValidationException $exception

Return Value

void

protected array prepareForValidation(array<string,mixed> $attributes)

No description

Parameters

array<string,mixed> $attributes

Return Value

array

string|null getFilamentTranslatableContentDriver()

No description

Return Value

string|null

| null

TranslatableContentDriver|null makeFilamentTranslatableContentDriver()

No description

Return Value

TranslatableContentDriver|null

string|null getActiveFormsLocale()

No description

Return Value

string|null

void updatingInteractsWithForms(string $statePath)

No description

Parameters

string $statePath

Return Value

void

mixed getOldFormState(string $statePath)

No description

Parameters

string $statePath

Return Value

mixed

void updatedInteractsWithForms(string $statePath)

No description

Parameters

string $statePath

Return Value

void

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

No description

Parameters

string $name
Form|Closure|null $form

Return Value

Form|null

protected array cacheForms()

No description

Return Value

array

array getTraitForms()

No description

Return Value

array

protected bool hasCachedForm(string $name)

No description

Parameters

string $name

Return Value

bool

Form|null getForm(string $name)

No description

Parameters

string $name

Return Value

Form|null

array getCachedForms()

No description

Return Value

array

protected array getForms()

No description

Return Value

array

Form form(Form $form)

No description

Parameters

Form $form

Return Value

Form

protected Model|string|null getFormModel() deprecated

deprecated Override the `form()` method to configure the default form.

No description

Return Value

Model|string|null

protected array getFormSchema() deprecated

deprecated Override the `form()` method to configure the default form.

No description

Return Value

array

protected string|null getFormContext() deprecated

deprecated Override the `form()` method to configure the default form.

No description

Return Value

string|null

string|null getFormStatePath()

No description

Return Value

string|null

array getRules()

No description

Return Value

array

protected array getValidationAttributes()

No description

Return Value

array

protected Form makeForm()

No description

Return Value

Form

bool isCachingForms()

No description

Return Value

bool

Infolist mountedFormComponentActionInfolist()

No description

Return Value

Infolist

Infolist|null getInfolist(string $name)

No description

Parameters

string $name

Return Value

Infolist|null

Infolist cacheInfolist(string $name, Infolist $infolist)

No description

Parameters

string $name
Infolist $infolist

Return Value

Infolist

array getCachedInfolists()

No description

Return Value

array

protected bool hasCachedInfolist(string $name)

No description

Parameters

string $name

Return Value

bool

mixed callMountedInfolistAction(array $arguments = [])

No description

Parameters

array $arguments

Return Value

mixed

mixed mountInfolistAction(string $name, string|null $component = null, string|null $infolist = null)

No description

Parameters

string $name
string|null $component
string|null $infolist

Return Value

mixed

protected void openInfolistActionModal()

No description

Return Value

void

bool mountedInfolistActionShouldOpenModal(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

bool mountedInfolistActionHasForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

bool

Action|null getMountedInfolistAction()

No description

Return Value

Action|null

Component|null getMountedInfolistActionComponent()

No description

Return Value

Component|null

Form|null getMountedInfolistActionForm(Action|null $mountedAction = null)

No description

Parameters

Action|null $mountedAction

Return Value

Form|null

void unmountInfolistAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)

No description

Parameters

bool $shouldCancelParentActions
bool $shouldCloseModal

Return Value

void

protected Infolist makeInfolist()

No description

Return Value

Infolist

protected array getInteractsWithInfolistsForms()

No description

Return Value

array

View render()

No description

Return Value

View

string getView()

No description

Return Value

string

string getLayout()

No description

Return Value

string

Htmlable getHeading()

No description

Return Value

Htmlable

Htmlable|null getSubheading()

No description

Return Value

Htmlable|null

Htmlable getTitle()

No description

Return Value

Htmlable

MaxWidth|string|null getMaxContentWidth()

No description

Return Value

MaxWidth|string|null

array getExtraBodyAttributes()

No description

Return Value

array

protected array getLayoutData()

No description

Return Value

array

protected array getViewData()

No description

Return Value

array

protected void halt()

No description

Return Value

void

protected void callHook(string $hook)

No description

Parameters

string $hook

Return Value

void

static void stickyFormActions(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static void alignFormActionsStart()

No description

Return Value

void

static void alignFormActionsCenter()

No description

Return Value

void

static void alignFormActionsEnd()

No description

Return Value

void

static void alignFormActionsLeft() deprecated

deprecated Use `alignFormActionsStart()` instead

No description

Return Value

void

static void alignFormActionsRight() deprecated

deprecated Use `alignFormActionsEnd()` instead

No description

Return Value

void

Alignment getFormActionsAlignment()

No description

Return Value

Alignment

bool areFormActionsSticky()

No description

Return Value

bool

bool hasInlineLabels()

No description

Return Value

bool

static void formActionsAlignment(Alignment $alignment)

No description

Parameters

Alignment $alignment

Return Value

void

static void inlineLabels(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

array getRenderHookScopes()

No description

Return Value

array

void mountCanAuthorizeAccess()

No description

Return Value

void

static bool canAccess()

No description

Return Value

bool

static void registerRoutes(Panel $panel)

No description

Parameters

Panel $panel

Return Value

void

static void routes(Panel $panel)

No description

Parameters

Panel $panel

Return Value

void

static string getRoutePath()

No description

Return Value

string

static string getRelativeRouteName()

No description

Return Value

string

static string getSlug()

No description

Return Value

string

static string|array getRouteMiddleware(Panel $panel)

No description

Parameters

Panel $panel

Return Value

string|array

| array

static string|array getWithoutRouteMiddleware(Panel $panel)

No description

Parameters

Panel $panel

Return Value

string|array

| array

static string getEmailVerifiedMiddleware(Panel $panel)

No description

Parameters

Panel $panel

Return Value

string

static bool isEmailVerificationRequired(Panel $panel)

No description

Parameters

Panel $panel

Return Value

bool

static string getTenantSubscribedMiddleware(Panel $panel)

No description

Parameters

Panel $panel

Return Value

string

static bool isTenantSubscriptionRequired(Panel $panel)

No description

Parameters

Panel $panel

Return Value

bool

array getSubNavigation()

No description

Return Value

array

SubNavigationPosition getSubNavigationPosition()

No description

Return Value

SubNavigationPosition

array getCachedSubNavigation()

No description

Return Value

array

array generateNavigationItems(array $components)

No description

Parameters

array $components

Return Value

array

array getSubNavigationParameters()

No description

Return Value

array

void bootedInteractsWithHeaderActions()

No description

Return Value

void

protected void cacheHeaderActions()

No description

Return Value

void

array getCachedHeaderActions()

No description

Return Value

array

protected array getHeaderActions()

No description

Return Value

array

protected array getActions() deprecated

deprecated Register header actions within the `getHeaderActions()` method instead.

No description

Return Value

array

static string getUrl(array $parameters = [], bool $isAbsolute = true, string|null $panel = null, Model|null $tenant = null)

No description

Parameters

array $parameters
bool $isAbsolute
string|null $panel
Model|null $tenant

Return Value

string

static void registerNavigationItems()

No description

Return Value

void

static array getNavigationItems(array $urlParameters = [])

No description

Parameters

array $urlParameters

Return Value

array

static string getNavigationItemActiveRoutePattern()

No description

Return Value

string

static string getRouteName(string|null $panel = null)

No description

Parameters

string|null $panel

Return Value

string

array getBreadcrumbs()

No description

Return Value

array

static string|null getNavigationGroup()

No description

Return Value

string|null

static string|null getNavigationParentItem()

No description

Return Value

string|null

static Htmlable|null getActiveNavigationIcon()

No description

Return Value

Htmlable|null

static Htmlable|null getNavigationIcon()

No description

Return Value

Htmlable|null

static string getNavigationLabel()

No description

Return Value

string

static string|null getNavigationBadge()

No description

Return Value

string|null

static string|array|null getNavigationBadgeColor()

No description

Return Value

string|array|null

| array{50: string, 100: string, 200: string, 300: string, 400: string, 500: string, 600: string, 700: string, 800: string, 900: string, 950: string} | null

static string|null getNavigationBadgeTooltip()

No description

Return Value

string|null

static int|null getNavigationSort()

No description

Return Value

int|null

static string getNavigationUrl(array $parameters = [])

No description

Parameters

array $parameters

Return Value

string

View|null getFooter()

No description

Return Value

View|null

View|null getHeader()

No description

Return Value

View|null

protected array getHeaderWidgets()

No description

Return Value

array

array getVisibleHeaderWidgets()

No description

Return Value

array

int|string|array getHeaderWidgetsColumns()

No description

Return Value

int|string|array

| string | array<string, int | string | null>

protected array getFooterWidgets()

No description

Return Value

array

array getVisibleFooterWidgets()

No description

Return Value

array

protected array filterVisibleWidgets(array $widgets)

No description

Parameters

array $widgets

Return Value

array

protected string normalizeWidgetClass(WidgetConfiguration $widget)

No description

Parameters

WidgetConfiguration $widget

Return Value

string

int|string|array getFooterWidgetsColumns()

No description

Return Value

int|string|array

| string | array<string, int | string | null>

array getWidgetData()

No description

Return Value

array

static bool shouldRegisterNavigation(array $parameters = [])

No description

Parameters

array $parameters

Return Value

bool

static bool isDiscovered()

No description

Return Value

bool

static string|null getCluster()

No description

Return Value

string|null

| null

static string prependClusterSlug(string $slug)

No description

Parameters

string $slug

Return Value

string

static string prependClusterRouteBaseName(string $name)

No description

Parameters

string $name

Return Value

string

void mountCanAuthorizeResourceAccess()

No description

Return Value

void

static void authorizeResourceAccess()

No description

Return Value

void

static string getResourcePageName()

No description

Return Value

string

static PageRegistration route(string $path)

No description

Parameters

string $path

Return Value

PageRegistration

string|null getBreadcrumb()

No description

Return Value

string|null

string getModel()

No description

Return Value

string

static string getResource()

No description

Return Value

string

bool hasDatabaseTransactions()

No description

Return Value

bool

protected void beginDatabaseTransaction()

No description

Return Value

void

protected void commitDatabaseTransaction()

No description

Return Value

void

protected void rollBackDatabaseTransaction()

No description

Return Value

void

protected mixed wrapInDatabaseTransaction(Closure $callback)

No description

Parameters

Closure $callback

Return Value

mixed

void mountHasUnsavedDataChangesAlert()

No description

Return Value

void

protected void rememberData()

No description

Return Value

void

protected bool hasUnsavedDataChangesAlert()

No description

Return Value

bool

void bootedInteractsWithFormActions()

No description

Return Value

void

protected void cacheFormActions()

No description

Return Value

void

array getCachedFormActions()

No description

Return Value

array

protected array getFormActions()

No description

Return Value

array

protected bool hasFullWidthFormActions()

No description

Return Value

bool

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 Model associateRecordWithTenant(Model $record, Model $tenant)

No description

Parameters

Model $record
Model $tenant

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

protected array getRedirectUrlParameters()

No description

Return Value

array

static bool canCreateAnother()

No description

Return Value

bool

static void disableCreateAnother()

No description

Return Value

void

Model|null getRecord()

No description

Return Value

Model|null