class YearResolver extends Resolver (View source)

YEAR

A year in four-digit format. Values allowed in four-digit format: 1901 to 2155, and 0000. MySQL 8.0 does not support year in two-digit format.

Methods

__construct(Column $column)

Constructor.

from  Resolver
string
fake()

Get the row string form database factory, then return the string for Seeder class.

string
migration()

Get the row string for migration file, then return the string for migration class.

string|null
nova()

Get the row string for Nova resource file, then return the string for Nova resource class.

string
last(string $migration)

Finally process for resolvers

from  Resolver
string|null
cast()

Get the attribute casting

from  Resolver
mixed
__get(string $property)

Reading data from inaccessible (protected or private) or non-existing properties.

from  Resolver

Details

__construct(Column $column)

Constructor.

Parameters

Column $column

The column.

string fake()

Get the row string form database factory, then return the string for Seeder class.

Return Value

string

The method returns a Seeder class row string

string migration()

Get the row string for migration file, then return the string for migration class.

Return Value

string

The method returns a Migration file row string

string|null nova()

Get the row string for Nova resource file, then return the string for Nova resource class.

Return Value

string|null

The method returns a Nova resource file row field string

string last(string $migration)

Finally process for resolvers

Parameters

string $migration

The migration payload before post processing

Return Value

string

The method returns the migration payload after post processing

string|null cast()

Get the attribute casting

Return Value

string|null

The method returns a cast file row field string

mixed __get(string $property)

Reading data from inaccessible (protected or private) or non-existing properties.

Parameters

string $property

The property name.

Return Value

mixed

The value of the column property.