Description
Laravel Prefixed IDs is a package by Spatie that automatically adds a friendly prefixed ID to Laravel models.
Summary
- Laravel Prefixed IDs is a package by Spatie that automatically adds a friendly prefixed ID to Laravel models.
- As Freek Van der Herten describes in his introductory post about this package, it provides human-readable prefixes to otherwise random IDs.
- For example, you might give a token ID that contains a friendly prefix: token_sandbox_FKdleMEKfiemsiDSMEODL The token_sandbox prefix could indicate that it's a token for your sandbox environment, which would otherwise look like a random ID.