A sluggable trait for your Eloquent models:
A slug is a simplified version of a string, typically URL-friendly. The act of “slugging” a string usually involves converting it to one case, and removing any non-URL-friendly characters (spaces, accented letters, ampersands, etc.). The resulting string can then be used as an indentifier for a particular resource.
Join the weekly newsletter and never miss out on new tips, tutorials, and more.