Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/noud/laravel-seo-slug

Laravel SEO Slug
https://github.com/noud/laravel-seo-slug

laravel seo slug

Last synced: about 2 months ago
JSON representation

Laravel SEO Slug

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.

```