Download the PHP package amdadulhaq/unique-slug-laravel without Composer
On this page you can find all versions of the php package amdadulhaq/unique-slug-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amdadulhaq/unique-slug-laravel
More information about amdadulhaq/unique-slug-laravel
Files in amdadulhaq/unique-slug-laravel
Package unique-slug-laravel
Short Description Unique slug generator for Laravel
License MIT
Homepage https://github.com/amdad121/unique-slug-laravel
Informations about the package unique-slug-laravel
Unique slug generator for Laravel
A powerful and flexible unique slug generator package for Laravel with advanced features.
Requirements
- PHP 8.2, 8.3, 8.4, or 8.5
- Laravel 11, 12, or 13
Installation
You can install the package via composer:
Publish the configuration file:
Usage
Basic Usage
Configuration Options
Custom Source and Slug Fields
Using Configuration File
Advanced Features
Custom Slug Generation
Conditional Slug Generation
Case Transformation
Available cases: lower, upper, title, camel, snake
Note:
snakehas no visible effect on the default hyphen-separated output. By the time case is applied, the slug has already gone throughStr::slug(), which lowercases and hyphenates the whole string — leaving no camelCase boundary left forStr::snake()to convert to underscores. If you want underscores, use a custom separator instead (see Custom Source and Slug Fields) rather thanslug.case.
Maximum Length
Reserved Slugs
Query Scopes
Soft Delete Support
Environment Variables
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Amdadul Haq
- All Contributors
License
The MIT License (MIT). Please see License File for more information.