class StructureHeading extends Model (View source)

Traits

Methods for models that can be a part of the forum "structure", like channels, pages, links, and headings.

Methods for models that have validation rules.

Properties

static protected $unguarded from  Model
Structure read-only $structure from  Structurable
$timestamps
int $id
string $name
string read-only $edit_url

Methods

getConnectionName()

No description

from  Model
static void
bootStructurable()

No description

MorphOne
structure()

Relationship with the node for this model within the forum structure.

static array
validate(array $data, ValidatesData $instance = null)

Validate an array of data against the model's validation rules.

static array
rules(StructureHeading $instance = null)

No description

static array
messages(ValidatesData $instance = null)

The model's validation messages.

static array
customAttributes(ValidatesData $instance = null)

The model's validation custom attribute translations.

Attribute
editUrl()

No description

Details

getConnectionName()

No description

static void bootStructurable()

No description

Return Value

void

MorphOne structure()

Relationship with the node for this model within the forum structure.

Return Value

MorphOne

static array validate(array $data, ValidatesData $instance = null)

Validate an array of data against the model's validation rules.

Parameters

array $data
ValidatesData $instance

Return Value

array

static array rules(StructureHeading $instance = null)

No description

Parameters

StructureHeading $instance

Return Value

array

static protected array messages(ValidatesData $instance = null)

The model's validation messages.

Parameters

ValidatesData $instance

Return Value

array

static protected array customAttributes(ValidatesData $instance = null)

The model's validation custom attribute translations.

Parameters

ValidatesData $instance

Return Value

array

protected Attribute editUrl()

No description

Return Value

Attribute