Download the PHP package coding-wisely/laravel-slug-auto-generator without Composer
On this page you can find all versions of the php package coding-wisely/laravel-slug-auto-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coding-wisely/laravel-slug-auto-generator
More information about coding-wisely/laravel-slug-auto-generator
Files in coding-wisely/laravel-slug-auto-generator
Package laravel-slug-auto-generator
Short Description Auto generating unique slugs for your Laravel model
License MIT
Homepage https://github.com/coding-wisely/laravel-slug-auto-generator
Informations about the package laravel-slug-auto-generator
Laravel Slug Generator Package
This package hosts a robust and flexible trait designed for effortless slug generation within Laravel applications. Whether you're building a blog, e-commerce platform, or any other web application, managing SEO-friendly URLs becomes seamless with this powerful solution.
Key Features
-
Automatic Slug Creation: Automatically generates slugs based on a specified field in your Eloquent models, eliminating the need for manual slug assignment.
-
Unique Slug Enforcement: Ensures that generated slugs are unique within the database table, preventing conflicts and maintaining data integrity.
-
SEO-Friendly URLs: Facilitates the creation of SEO-friendly URLs by generating slugs based on user-friendly field values.
-
Groupable Slugs: Supports the generation of unique slugs within a specific group, allowing for distinct slugs across different categories or sections. This practically means that you can have the same slug in different categories/tasks/projects/posts/etc.
- Customizable Configuration: Easily configure the field used for slug generation via Laravel's flexible configuration system, adapting to diverse project requirements effortlessly.
Installation
You can install the package via composer:
You can publish the config file with php artisan vendor:publish
and select CodingWisely package from the list.
This is the contents of the published config file:
Replace with your field.
Usage
-
Integrate the Trait: Simply integrate the
SlugGenerator
trait into your Eloquent model to unlock its powerful slug generation capabilities. -
Configuration: Customize the slug generation behavior by modifying the
slug-auto-generator.php
configuration file located in yourconfig
directory. - Effortless Integration: With the trait seamlessly integrated into your model, enjoy automatic and unique slug generation without any additional setup.
Example
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
- Vladimir Nikolic
- All Contributors
License
The MIT License (MIT). Please see License File for more information.