awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectServer MCPDespreCum realizăm clasamentulPresă
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
cviebrock avatar

cviebrock/eloquent-sluggable

0
View on GitHub↗
3,993 stele·449 fork-uri·PHP·MIT·5 vizualizări

Eloquent Sluggable

Acest proiect este un instrument de generare și gestionare a slug-urilor pentru Laravel Eloquent ORM. Acesta oferă un trait reutilizabil care adaugă capacitatea de a crea șiruri unice, prietenoase pentru URL-uri, din atributele modelelor, permițând recuperarea înregistrărilor din baza de date folosind slug-uri lizibile în loc de chei primare.

Sistemul suportă gestionarea URL-urilor multilingve prin menținerea unor slug-uri localizate separate pentru o singură instanță de model. Acesta asigură unicitatea printr-un mecanism automat de evitare a coliziunilor care adaugă sufixe numerice șirurilor duplicate și previne utilizarea cuvintelor rezervate care s-ar putea suprapune cu rutele sistemului.

Setul de instrumente include capacități pentru generarea personalizată de slug-uri prin suprascrierea motorului și reguli de formatare, precum și un pipeline bazat pe evenimente pentru a intercepta sau anula procesul de creare a slug-urilor. Rezoluția bazei de date este gestionată prin query scopes dedicate și metode helper pentru recuperarea modelelor pe baza valorilor slug-urilor lor.

Features

  • Slug Generators - Creates human-readable, URL-safe slugs from model attributes for search engine optimization.
  • Query Scopes - Wraps database queries in dedicated scopes to retrieve model instances based on slug values.
  • Slug-Based Record Retrieval - Implements a dedicated query scope to limit database results to records matching a specific slug value.
  • Slug History Trackers - Provides simplified helper methods to retrieve model instances from the database using their slug values.
  • Slug Generation Extensions - Provides a specialized tool for creating unique, URL-friendly strings within the Laravel Eloquent ORM.
  • Model Trait Extensions - Provides a reusable trait that extends Eloquent models with slugging capabilities and query scopes.
  • Trait-Based Capability Injection - Uses a reusable PHP trait to inject slugging logic and persistence methods into Eloquent models.
  • Slug-Based Model Resolution - Retrieves database records using unique text identifiers instead of primary keys to improve SEO and user experience.
  • Multilingual Slugs - Generates and maintains unique slugs across different languages to support localized web addresses.
  • Model - Maps specific model fields to slugging engines to transform human-readable text into URL-friendly strings.
  • Unique Identifier Generators - Prevents URL collisions by automatically managing unique identifiers for slugs in the database.
  • Unique String Suffixing - Implements an automatic collision-avoidance mechanism that appends numeric suffixes to duplicate slugs.
  • Custom Slug Configurations - Allows implementing custom formatting rules and reserved word lists to control URL generation.
  • Behavioral Overrides - Allows overriding default slugging behaviors through custom methods to implement complex uniqueness checks.
  • Engine Overrides - Implements hooks and configuration settings to modify the slugging engine and character mappings for custom formatting.
  • Multi-Slug Persistence - Generates and maintains several distinct slugs for a single model instance to support diverse URL requirements.
  • Reserved Word Filters - Blocks the generation of slugs that match a predefined list of reserved words to avoid routing conflicts.
  • Reserved Word Slug Blockers - Blocks the generation of slugs that match a predefined list of reserved names to avoid route collisions.
  • Numeric Suffix Fallbacks - Prevents duplicate slugs by appending numeric suffixes to colliding strings using configurable indices.
  • General Utilities - Generates URL slugs for database models.
  • Application Helpers - Generates slugs for Eloquent models.

Istoric stele

Graficul istoricului de stele pentru cviebrock/eloquent-sluggableGraficul istoricului de stele pentru cviebrock/eloquent-sluggable

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru Eloquent Sluggable

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Eloquent Sluggable.
  • norman/friendly_idAvatar norman

    norman/friendly_id

    6,225Vezi pe GitHub↗

    Friendly ID is an ActiveRecord slugging plugin that generates human-readable URL slugs from model attributes, replacing numeric IDs for cleaner permalinks in Rails applications. It resolves database records by matching a slug string instead of the numeric primary key in finder methods, enabling friendlier URLs throughout an application. The plugin provides a slug conflict resolution system that appends a UUID or uses candidate attribute combinations to guarantee unique slugs when the primary choice is already taken. It also offers a scoped uniqueness engine that restricts slug uniqueness with

    Rubyfriendly-urlpluginrails
    Vezi pe GitHub↗6,225
  • area17/twillAvatar area17

    area17/twill

    3,956Vezi pe GitHub↗

    Twill is a Laravel CMS toolkit and admin panel generator designed for building custom administrative consoles and content management systems. It serves as a headless CMS framework and a toolkit for defining content models and managing structured data through a dedicated administrative interface. The project features a visual block editor that allows publishers to arrange and configure reusable content sections via a drag-and-drop interface. It includes a dedicated digital asset manager for storing, cropping, and optimizing images and files across local or cloud storage, as well as a multiling

    PHP
    Vezi pe GitHub↗3,956
  • doctrine-extensions/doctrineextensionsAvatar doctrine-extensions

    doctrine-extensions/DoctrineExtensions

    4,143Vezi pe GitHub↗

    DoctrineExtensions is a collection of reusable behavioral extensions for Doctrine ORM designed to automate common entity tasks. It provides a system for tracking historical changes to database entities, implementing soft deletion workflows, managing nested set tree structures for hierarchical data, and storing translated field values based on language locales. The project distinguishes itself by providing specialized tools for entity auditing, which logs modified values and timestamps, and a translation framework for multilingual content management. It also includes a tree manager to organize

    PHP
    Vezi pe GitHub↗4,143
  • consoletvs/chartsAvatar ConsoleTVs

    ConsoleTVs/Charts

    86Vezi pe GitHub↗

    Deprecated Charts for Laravel

    PHP
    Vezi pe GitHub↗86
Vezi toate cele 30 alternative pentru Eloquent Sluggable→

Întrebări frecvente

Ce face cviebrock/eloquent-sluggable?

Acest proiect este un instrument de generare și gestionare a slug-urilor pentru Laravel Eloquent ORM. Acesta oferă un trait reutilizabil care adaugă capacitatea de a crea șiruri unice, prietenoase pentru URL-uri, din atributele modelelor, permițând recuperarea înregistrărilor din baza de date folosind slug-uri lizibile în loc de chei primare.

Care sunt principalele funcționalități ale cviebrock/eloquent-sluggable?

Principalele funcționalități ale cviebrock/eloquent-sluggable sunt: Slug Generators, Query Scopes, Slug-Based Record Retrieval, Slug History Trackers, Slug Generation Extensions, Model Trait Extensions, Trait-Based Capability Injection, Slug-Based Model Resolution.

Care sunt câteva alternative open-source pentru cviebrock/eloquent-sluggable?

Alternativele open-source pentru cviebrock/eloquent-sluggable includ: norman/friendly_id — Friendly ID is an ActiveRecord slugging plugin that generates human-readable URL slugs from model attributes,… doctrine-extensions/doctrineextensions — DoctrineExtensions is a collection of reusable behavioral extensions for Doctrine ORM designed to automate common… area17/twill — Twill is a Laravel CMS toolkit and admin panel generator designed for building custom administrative consoles and… nahid/talk — Talk is a real-time users messaging and chatting system for Laravel. consoletvs/charts — [Deprecated] Charts for Laravel. rachidlaasri/laravelinstaller — A web installer for Laravel.