matin-utils / types-tracker
a utility for track all Types in Laravel apilcation
Installs: 789
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/matin-utils/types-tracker
This package is auto-updated.
Last update: 2025-09-17 10:52:40 UTC
README
Summery
a usefull utility for track all types in laravel/lumen application
install
usage
helper function
types()
application
app('types')
category
- list all available categories
types()->category()
[
"nodeType",
"licenceType",
"travelService",
]
- get available category
types()->category('nodeType')
[
1 => "enterprise",
2 => "light",
]
get types
- get Type Name by Id
types()->getName('nodeType',1)
//<return> "enterprise"
- get Type Id by Name
types()->getId('nodeType','light')
//<return> 2