webparking/laravel-type-safe-collection
Webparking's Laravel Type-Safe Collection adds strongly typed collections to Laravel. Define the permitted item class once to get runtime type checks, clearer errors, IDE autocompletion, and safer map/filter operations, keeping collection contents predictable and preventing mixed-type bugs.
This package provides type-safe extension of the laravel collection, forcing a single type of object.
How can I help you explore Laravel packages today?