Laravel support utilities.
Note: This package is not yet available on Packagist. You must add it to your composer.json manually.
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/xcopy/laravel-support"
}
],
"require": {
"xcopy/laravel-support": "dev-main"
}
}- HasLabel - Generates human-readable labels from enum values
- HasValues - Returns array of all enum values
- HasChoices - Returns enum cases as value => label pairs for dropdowns
- HasStaticCase - Magic static method access using camelCase only
- AsEmailString - Trims and lowercases email addresses
- AsModelClass - Casts to model class name
- AsTitledString - Converts to a title case
- AsTrimmedString - Trims whitespace
composer testPlease see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.