Download the PHP package areia-lab/slug-uid without Composer
On this page you can find all versions of the php package areia-lab/slug-uid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package slug-uid
SlugUid Laravel Package
SlugUid is a Laravel package to automatically generate slugs, unique identifiers (UIDs), and sequence numbers for your models. It supports configuration, facades, traits, and artisan commands.
Requirements
- PHP >= 8.0
- Laravel >= 9.0
- Composer
Installation
Publish the configuration:
Configuration
Slug Settings
UID Settings
Sequence Settings
Usage
Basic usage with the Facade:
Facade Methods
Traits
Instead of a single trait, you can use dedicated traits for slug, uid, and sequence:
Artisan Commands
Features
- Customizable slug sources
- Automatic regeneration on update
- Hash-based UID generators
- Scoped sequence numbers per model type
- Artisan regen command
- Facade + Trait support
- Publishable configuration
Examples
Generate a basic slug
Generate a unique slug for a model
Generate a UID with prefix
Generate a unique UID for a model
Generate a sequence number for a model
Generate slug, UID, and sequence from model creation
Create a model using only model configuration
Update model details
License
MIT License © [Your Name or Organization]
All versions of slug-uid with dependencies
PHP Build Version
Package Version
The package areia-lab/slug-uid contains the following files
Loading the files please wait ....