class Resource (View source)

Traits

Macroable

Properties

static protected string|null $breadcrumb
static protected bool $isGloballySearchable
static protected string|null deprecated $label
static protected string|null $modelLabel
static protected string|null $model
static protected string|null $navigationGroup
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 string|array $middlewares
static protected string|array $withoutRouteMiddleware
static protected int $globalSearchResultsLimit
static protected bool $shouldAuthorizeWithGate
static protected bool $shouldIgnorePolicies

Methods

static Form
form(Form $form)

No description

static void
registerNavigationItems()

No description

static array
getNavigationItems()

No description

static Table
table(Table $table)

No description

static Model|null
resolveRecordRouteBinding($key)

No description

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

No description

static void
authorizeWithGate(bool $condition = true)

No description

static void
ignorePolicies(bool $condition = true)

No description

static bool
shouldAuthorizeWithGate()

No description

static bool
shouldIgnorePolicies()

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

No description

static bool
canView(Model $record)

No description

static string
getBreadcrumb()

No description

static Builder
getEloquentQuery()

No description

static array
static array
getGlobalSearchResultActions(Model $record)

No description

static array
getGlobalSearchResultDetails(Model $record)

No description

static string
getGlobalSearchResultTitle(Model $record)

No description

static string|null
getGlobalSearchResultUrl(Model $record)

No description

static int
getGlobalSearchResultsLimit()

No description

static Collection
getGlobalSearchResults(string $searchQuery)

No description

static string|null
getLabel() deprecated

No description

static string
getModelLabel()

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

No description

static string|null
getRecordRouteKeyName()

No description

static Closure
getRoutes()

No description

static string|array
getMiddlewares()

No description

static string|array
getWithoutRouteMiddleware()

No description

static string
getSlug()

No description

static string
getUrl($name = 'index', $params = [], $isAbsolute = true)

No description

static bool
hasPage($page)

No description

static bool
hasRecordTitle()

No description

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

No description

static Builder
getGlobalSearchEloquentQuery()

No description

static string|null
getNavigationGroup()

No description

static void
navigationGroup(string|null $group)

No description

static string
getNavigationIcon()

No description

static void
navigationIcon(string|null $icon)

No description

static string
getActiveNavigationIcon()

No description

static string
getNavigationLabel()

No description

static string|null
getNavigationBadge()

No description

static string|null
getNavigationBadgeColor()

No description

static int|null
getNavigationSort()

No description

static void
navigationSort(int|null $sort)

No description

static string
getNavigationUrl()

No description

static bool
shouldRegisterNavigation()

No description

Details

static Form form(Form $form)

No description

Parameters

Form $form

Return Value

Form

static void registerNavigationItems()

No description

Return Value

void

static array getNavigationItems()

No description

Return Value

array

static Table table(Table $table)

No description

Parameters

Table $table

Return Value

Table

static Model|null resolveRecordRouteBinding($key)

No description

Parameters

$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 void authorizeWithGate(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static void ignorePolicies(bool $condition = true)

No description

Parameters

bool $condition

Return Value

void

static bool shouldAuthorizeWithGate()

No description

Return Value

bool

static bool shouldIgnorePolicies()

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

No description

Return Value

bool

static bool canView(Model $record)

No description

Parameters

Model $record

Return Value

bool

static string getBreadcrumb()

No description

Return Value

string

static Builder getEloquentQuery()

No description

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 string getGlobalSearchResultTitle(Model $record)

No description

Parameters

Model $record

Return Value

string

static string|null getGlobalSearchResultUrl(Model $record)

No description

Parameters

Model $record

Return Value

string|null

static int getGlobalSearchResultsLimit()

No description

Return Value

int

static Collection getGlobalSearchResults(string $searchQuery)

No description

Parameters

string $searchQuery

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

No description

Return Value

string

static string|null getRecordRouteKeyName()

No description

Return Value

string|null

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($name = 'index', $params = [], $isAbsolute = true)

No description

Parameters

$name
$params
$isAbsolute

Return Value

string

static bool hasPage($page)

No description

Parameters

$page

Return Value

bool

static bool hasRecordTitle()

No description

Return Value

bool

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

No description

Parameters

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

Return Value

Builder

static protected Builder getGlobalSearchEloquentQuery()

No description

Return Value

Builder

static protected string|null getNavigationGroup()

No description

Return Value

string|null

static void navigationGroup(string|null $group)

No description

Parameters

string|null $group

Return Value

void

static protected string getNavigationIcon()

No description

Return Value

string

static void navigationIcon(string|null $icon)

No description

Parameters

string|null $icon

Return Value

void

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 void navigationSort(int|null $sort)

No description

Parameters

int|null $sort

Return Value

void

static protected string getNavigationUrl()

No description

Return Value

string

static protected bool shouldRegisterNavigation()

No description

Return Value

bool