Skip to content
项目分类

网站与应用开发 · GitHub

使用框架、界面组件和开发平台构建网站与应用。

实用 GitHub 项目

28,964 个项目
1,559星标
laravel-sluggable preview

一个为 Eloquent 模型创建 slug 的设计主张明确的软件包

  • Unique slugs out of the box, with a configurable -1, -2, ... suffix on collisions.
  • Self-healing URLs: route keys that combine the slug with the primary key (hello-world-5) so renaming a model never breaks an existing link. Stale slugs return a 308 redirect to the canonical URL.