wanakin/slug

This package is abandoned and no longer maintained. No replacement package was suggested.

A simple slug service for Laravel.

0.0.2 2021-07-23 03:37 UTC

This package is auto-updated.

Last update: 2022-01-13 20:31:02 UTC


README

The goal of this package was to simplify the job of adding custom slugs to models, and taking care of things like model binding. However, we ultimately decided that adding a slug column directly to our migrations worked better for our use case, and have therefore decided to archive this repository.

For those of you wondering, here's how we usually set up slugs:

$table->string('slug')->unique();

Setting unique also indexes the column, so lookups by the slug can avoid a full table scan.