https://github.com/noud/laravel-seo-slug
Laravel SEO Slug
https://github.com/noud/laravel-seo-slug
laravel seo slug
Last synced: 14 days ago
JSON representation
Laravel SEO Slug
- Host: GitHub
- URL: https://github.com/noud/laravel-seo-slug
- Owner: noud
- License: mit
- Created: 2020-01-04T15:41:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-10T19:40:38.000Z (about 5 years ago)
- Last Synced: 2025-03-02T03:26:29.013Z (4 months ago)
- Topics: laravel, seo, slug
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel SEO Slug
Decorate your Models with SEO Slug.
## Requirements
* PHP 7.2+
* Laravel 5.6+## Installation
Install the package by running this command in your terminal/cmd:
```
composer require noud/laravel-seo-slug
```## Usage
Here is a usage example. First add the Slug logic to your models. Then create and do a migration.
### Models
Add Slug business logic to Models, like so:
```
url);
end($urlParts);
return prev($urlParts);
}
}
```The default Slug database column name is ```slug``` but can be overwritten.
```