abstract class Resource (View source)

Traits

Macroable

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

static Form
form(Form $form)

No description

static Infolist
infolist(Infolist $infolist)

No description

static bool
canAccess()

No description

static void
registerNavigationItems()

No description

static array
getNavigationItems()

No description

static SubNavigationPosition
getSubNavigationPosition()

No description

static Table
table(Table $table)

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

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

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
static void
applyGlobalSearchAttributeConstraints(Builder $query, string $search)

No description

static 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
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

Details

static Form form(Form $form)

No description

Parameters

Form $form

Return Value

Form

static Infolist infolist(Infolist $infolist)

No description

Parameters

Infolist $infolist

Return Value

Infolist

static bool canAccess()

No description

Return Value

bool

static void registerNavigationItems()

No description

Return Value

void

static array getNavigationItems()

No description

Return Value

array

static SubNavigationPosition getSubNavigationPosition()

No description

Return Value

SubNavigationPosition

static Table table(Table $table)

No description

Parameters

Table $table

Return Value

Table

static Model|null resolveRecordRouteBinding(int|string $key)

No description

Parameters

int|string $key

Return Value

Model|null

static bool can(string $action, Model|null $record = null)

No description

Parameters

string $action
Model|null $record

Return Value

bool

static Response|null authorize(string $action, Model|null $record = null)

No description

Parameters

string $action
Model|null $record

Return Value

Response|null

Exceptions

AuthorizationException

static void checkPolicyExistence(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static void skipAuthorization(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static bool shouldCheckPolicyExistence()

No description

Return Value

bool

static bool shouldSkipAuthorization()

No description

Return Value

bool

static bool canViewAny()

No description

Return Value

bool

static bool canCreate()

No description

Return Value

bool

static bool canEdit(Model $record)

No description

Parameters

Model $record

Return Value

bool

static bool canDelete(Model $record)

No description

Parameters

Model $record

Return Value

bool

static bool canDeleteAny()

No description

Return Value

bool

static bool canForceDelete(Model $record)

No description

Parameters

Model $record

Return Value

bool

static bool canForceDeleteAny()

No description

Return Value

bool

static bool canReorder()

No description

Return Value

bool

static bool canReplicate(Model $record)

No description

Parameters

Model $record

Return Value

bool

static bool canRestore(Model $record)

No description

Parameters

Model $record

Return Value

bool

static bool canRestoreAny()

No description

Return Value

bool

static bool canView(Model $record)

No description

Parameters

Model $record

Return Value

bool

static void authorizeViewAny()

No description

Return Value

void

static void authorizeCreate()

No description

Return Value

void

static void authorizeEdit(Model $record)

No description

Parameters

Model $record

Return Value

void

static void authorizeView(Model $record)

No description

Parameters

Model $record

Return Value

void

static bool canGloballySearch()

No description

Return Value

bool

static string getBreadcrumb()

No description

Return Value

string

static Builder getEloquentQuery()

No description

Return Value

Builder

static Builder scopeEloquentQueryToTenant(Builder $query, Model|null $tenant)

No description

Parameters

Builder $query
Model|null $tenant

Return Value

Builder

static array getGloballySearchableAttributes()

No description

Return Value

array

static array getGlobalSearchResultActions(Model $record)

No description

Parameters

Model $record

Return Value

array

static array getGlobalSearchResultDetails(Model $record)

No description

Parameters

Model $record

Return Value

array

static Htmlable getGlobalSearchResultTitle(Model $record)

No description

Parameters

Model $record

Return Value

Htmlable

static string|null getGlobalSearchResultUrl(Model $record)

No description

Parameters

Model $record

Return Value

string|null

static int getGlobalSearchResultsLimit()

No description

Return Value

int

static void modifyGlobalSearchQuery(Builder $query, string $search)

No description

Parameters

Builder $query
string $search

Return Value

void

static Collection getGlobalSearchResults(string $search)

No description

Parameters

string $search

Return Value

Collection

static string|null getLabel() deprecated

deprecated Use `getModelLabel()` instead.

No description

Return Value

string|null

static string getModelLabel()

No description

Return Value

string

static string getTitleCaseModelLabel()

No description

Return Value

string

static string getModel()

No description

Return Value

string

static array getPages()

No description

Return Value

array

static string|null getPluralLabel() deprecated

deprecated Use `getPluralModelLabel()` instead.

No description

Return Value

string|null

static string getPluralModelLabel()

No description

Return Value

string

static string getTitleCasePluralModelLabel()

No description

Return Value

string

static void titleCaseModelLabel(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static bool hasTitleCaseModelLabel()

No description

Return Value

bool

static string|null getRecordTitleAttribute()

No description

Return Value

string|null

static Htmlable|null getRecordTitle(Model|null $record)

No description

Parameters

Model|null $record

Return Value

Htmlable|null

static array getRelations()

No description

Return Value

array

static array getWidgets()

No description

Return Value

array

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

No description

Parameters

string|null $panel

Return Value

string

static string|null getRecordRouteKeyName()

No description

Return Value

string|null

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

No description

Return Value

string

static string getRoutePrefix()

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

static string getSlug()

No description

Return Value

string

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

No description

Parameters

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

Return Value

string

static bool hasPage(string $page)

No description

Parameters

string $page

Return Value

bool

static bool hasRecordTitle()

No description

Return Value

bool

static bool|null isGlobalSearchForcedCaseInsensitive()

No description

Return Value

bool|null

static protected void applyGlobalSearchAttributeConstraints(Builder $query, string $search)

No description

Parameters

Builder $query
string $search

Return Value

void

static protected Builder applyGlobalSearchAttributeConstraint(Builder $query, string $search, array $searchAttributes, bool $isFirst)

No description

Parameters

Builder $query
string $search
array $searchAttributes
bool $isFirst

Return Value

Builder

static Builder getGlobalSearchEloquentQuery()

No description

Return Value

Builder

static string|null getNavigationGroup()

No description

Return Value

string|null

static string|null getNavigationParentItem()

No description

Return Value

string|null

static void navigationGroup(string|null $group)

No description

Parameters

string|null $group

Return Value

void

static void navigationParentItem(string|null $item)

No description

Parameters

string|null $item

Return Value

void

static Htmlable|null getNavigationIcon()

No description

Return Value

Htmlable|null

static void navigationIcon(string|null $icon)

No description

Parameters

string|null $icon

Return Value

void

static Htmlable|null getActiveNavigationIcon()

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

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 int|null getNavigationSort()

No description

Return Value

int|null

static void navigationLabel(string|null $label)

No description

Parameters

string|null $label

Return Value

void

static void navigationSort(int|null $sort)

No description

Parameters

int|null $sort

Return Value

void

static string getNavigationUrl()

No description

Return Value

string

static bool shouldRegisterNavigation()

No description

Return Value

bool

static bool isDiscovered()

No description

Return Value

bool

static void scopeToTenant(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static bool isScopedToTenant()

No description

Return Value

bool

static string getTenantOwnershipRelationshipName()

No description

Return Value

string

static Relation getTenantOwnershipRelationship(Model $record)

No description

Parameters

Model $record

Return Value

Relation

static string getTenantRelationshipName()

No description

Return Value

string

static Relation getTenantRelationship(Model $tenant)

No description

Parameters

Model $tenant

Return Value

Relation

static array getRecordSubNavigation(Page $page)

No description

Parameters

Page $page

Return Value

array

static string|null getCluster()

No description

Return Value

string|null

| null