Skip to main content

Crate laravel_data

Crate laravel_data 

Source
Expand description

Powerful data objects for Laravel Rust: a port of spatie/laravel-data. See the README for the guide.

Structs§

DataConfig
The package’s settings: config/data.php.
DataServiceProvider
Registers the DataConfig section:
Lazy
A property that’s only included when asked for: the PHP package’s Lazy.
Partials
A tree of partial paths.
Transformation
A data object or collection with the partials, additional data and wrap of one transformation: what PHP’s include(), additional() and wrap() return.

Enums§

Optional
A value that may be missing from the input, and is left out of the output when it is: the PHP package’s Optional.

Traits§

Data
A data object: the PHP package’s Data class. Derive Serialize (and Deserialize to create it from input), then implement Data:
DataCollection
Lists of data objects: PHP’s DataCollection and collect().