abstract class Resolver implements ResolverInterface (View source)

It is used by parent class of various resolver classes.

Methods

__construct(Column $column)

Constructor.

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

string|null
cast()

Get the attribute casting

mixed
__get(string $property)

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

Details

__construct(Column $column)

Constructor.

Parameters

Column $column

The column.

abstract string fake()

internal  This method should be implemented by child classes.
 

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

abstract string migration()

internal  This method should be implemented by child classes.
 

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

abstract string|null nova()

internal  This method should be implemented by nova resource classes.
 

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.