Documentation

TinkerCaster
in package

Table of Contents

$appProperties  : array<string|int, mixed>
Application methods to include in the presenter.
castApplication()  : array<string|int, mixed>
Get an array representing the properties of an application.
castCollection()  : array<string|int, mixed>
Get an array representing the properties of a collection.
castModel()  : array<string|int, mixed>
Get an array representing the properties of a model.

Properties

$appProperties

Application methods to include in the presenter.

private static array<string|int, mixed> $appProperties = ['configurationIsCached', 'environment', 'environmentFile', 'isLocal', 'routesAreCached', 'runningUnitTests', 'version', 'path', 'basePath', 'configPath', 'databasePath', 'langPath', 'publicPath', 'storagePath', 'bootstrapPath']

Methods

castApplication()

Get an array representing the properties of an application.

public static castApplication(Application $app) : array<string|int, mixed>
Parameters
$app : Application
Return values
array<string|int, mixed>

castCollection()

Get an array representing the properties of a collection.

public static castCollection(Collection $collection) : array<string|int, mixed>
Parameters
$collection : Collection
Return values
array<string|int, mixed>

castModel()

Get an array representing the properties of a model.

public static castModel(Model $model) : array<string|int, mixed>
Parameters
$model : Model
Return values
array<string|int, mixed>

Search results