IlluminateCaster

class IlluminateCaster (View source)

Methods

static array castApplication(Application $app)

Get an array representing the properties of an application.

static array castCollection(Collection $collection)

Get an array representing the properties of a collection.

static array castModel(Model $model)

Get an array representing the properties of a model.

Details

static array castApplication(Application $app)

Get an array representing the properties of an application.

Parameters

Application $app

Return Value

array

static array castCollection(Collection $collection)

Get an array representing the properties of a collection.

Parameters

Collection $collection

Return Value

array

static array castModel(Model $model)

Get an array representing the properties of a model.

Parameters

Model $model

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Foundation/Console/IlluminateCaster.html