Resource
abstract class Resource (View source)
Traits
Properties
static protected string|null | $breadcrumb | ||
static protected Cluster> | $cluster | ||
static protected bool | $isDiscovered | ||
static protected bool | $isGloballySearchable | ||
static protected string|null deprecated | $label | ||
static protected string|null | $modelLabel | ||
static protected string|null | $model | ||
static protected string|null | $navigationBadgeTooltip | ||
static protected string|null | $navigationGroup | ||
static protected string|null | $navigationParentItem | ||
static protected string|null | $navigationIcon | ||
static protected string|null | $activeNavigationIcon | ||
static protected string|null | $navigationLabel | ||
static protected int|null | $navigationSort | ||
static protected string|null | $recordRouteKeyName | ||
static protected bool | $shouldRegisterNavigation | ||
static protected string|null deprecated | $pluralLabel | ||
static protected string|null | $pluralModelLabel | ||
static protected string|null | $recordTitleAttribute | ||
static protected string|null | $slug | ||
static protected bool | $isScopedToTenant | ||
static protected string|null | $tenantOwnershipRelationshipName | ||
static protected string|null | $tenantRelationshipName | ||
static protected string | $routeMiddleware | ||
static protected string | $withoutRouteMiddleware | ||
static protected int | $globalSearchResultsLimit | ||
static protected bool | $shouldCheckPolicyExistence | ||
static protected bool | $shouldSkipAuthorization | ||
static protected bool|null | $isGlobalSearchForcedCaseInsensitive | ||
static protected SubNavigationPosition | $subNavigationPosition | ||
static protected bool | $hasTitleCaseModelLabel |
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
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
static bool
canAccess()
No description
static void
registerNavigationItems()
No description
static array
getNavigationItems()
No description
static SubNavigationPosition
getSubNavigationPosition()
No description
static Model|null
resolveRecordRouteBinding(int|string $key)
No description
static bool
can(string $action, Model|null $record = null)
No description
static Response|null
authorize(string $action, Model|null $record = null)
No description
static void
checkPolicyExistence(bool $condition = true)
No description
static void
skipAuthorization(bool $condition = true)
No description
static bool
shouldCheckPolicyExistence()
No description
static bool
shouldSkipAuthorization()
No description
static bool
canViewAny()
No description
static bool
canCreate()
No description
static bool
canEdit(Model $record)
No description
static bool
canDelete(Model $record)
No description
static bool
canDeleteAny()
No description
static bool
canForceDelete(Model $record)
No description
static bool
canForceDeleteAny()
No description
static bool
canReorder()
No description
static bool
canReplicate(Model $record)
No description
static bool
canRestore(Model $record)
No description
static bool
canRestoreAny()
No description
static bool
canView(Model $record)
No description
static void
authorizeViewAny()
No description
static void
authorizeCreate()
No description
static void
authorizeEdit(Model $record)
No description
static void
authorizeView(Model $record)
No description
static bool
canGloballySearch()
No description
static string
getBreadcrumb()
No description
static Builder
getEloquentQuery()
No description
static Builder
scopeEloquentQueryToTenant(Builder $query, Model|null $tenant)
No description
static array
getGloballySearchableAttributes()
No description
static array
getGlobalSearchResultActions(Model $record)
No description
static array
getGlobalSearchResultDetails(Model $record)
No description
static Htmlable
getGlobalSearchResultTitle(Model $record)
No description
static string|null
getGlobalSearchResultUrl(Model $record)
No description
static int
getGlobalSearchResultsLimit()
No description
static void
modifyGlobalSearchQuery(Builder $query, string $search)
No description
static Collection
getGlobalSearchResults(string $search)
No description
static string|null
getLabel()
deprecated
deprecated
No description
static string
getModelLabel()
No description
static string
getTitleCaseModelLabel()
No description
static string
getModel()
No description
static array
getPages()
No description
static string|null
getPluralLabel()
deprecated
deprecated
No description
static string
getPluralModelLabel()
No description
static string
getTitleCasePluralModelLabel()
No description
static void
titleCaseModelLabel(bool $condition = true)
No description
static bool
hasTitleCaseModelLabel()
No description
static string|null
getRecordTitleAttribute()
No description
static Htmlable|null
getRecordTitle(Model|null $record)
No description
static array
getRelations()
No description
static array
getWidgets()
No description
static string
getRouteBaseName(string|null $panel = null)
No description
static string|null
getRecordRouteKeyName()
No description
static void
registerRoutes(Panel $panel)
No description
static void
routes(Panel $panel)
No description
static string
getRelativeRouteName()
No description
static string
getRoutePrefix()
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
static string
getSlug()
No description
static string
getUrl(string $name = 'index', array $parameters = [], bool $isAbsolute = true, string|null $panel = null, Model|null $tenant = null)
No description
static bool
hasPage(string $page)
No description
static bool
hasRecordTitle()
No description
static bool|null
isGlobalSearchForcedCaseInsensitive()
No description
static protected void
applyGlobalSearchAttributeConstraints(Builder $query, string $search)
No description
static protected Builder
applyGlobalSearchAttributeConstraint(Builder $query, string $search, array $searchAttributes, bool $isFirst)
No description
static Builder
getGlobalSearchEloquentQuery()
No description
static string|null
getNavigationGroup()
No description
static string|null
getNavigationParentItem()
No description
static void
navigationGroup(string|null $group)
No description
static void
navigationParentItem(string|null $item)
No description
static Htmlable|null
getNavigationIcon()
No description
static void
navigationIcon(string|null $icon)
No description
static Htmlable|null
getActiveNavigationIcon()
No description
static string
getNavigationLabel()
No description
static string|null
getNavigationBadge()
No description
static string|null
getNavigationBadgeTooltip()
No description
static string|array|null
getNavigationBadgeColor()
No description
static int|null
getNavigationSort()
No description
static void
navigationLabel(string|null $label)
No description
static void
navigationSort(int|null $sort)
No description
static string
getNavigationUrl()
No description
static bool
shouldRegisterNavigation()
No description
static bool
isDiscovered()
No description
static void
scopeToTenant(bool $condition = true)
No description
static bool
isScopedToTenant()
No description
static string
getTenantOwnershipRelationshipName()
No description
static Relation
getTenantOwnershipRelationship(Model $record)
No description
static string
getTenantRelationshipName()
No description
static Relation
getTenantRelationship(Model $tenant)
No description
static array
getRecordSubNavigation(Page $page)
No description
static string|null
getCluster()
No description