PHP Classes

Laravel Sluggable: Add a slug property to models used in Laravel apps

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 37 All time: 10,955 This week: 71Up
Version License PHP version Categories
laravel-sluggable 1.0.0MIT/X Consortium ...7Databases, Libraries, Design Patterns, P...
Description 

Author

This package can add a slug property to models used in Laravel applications.

It provides a trait that can be used in Laravel model classes to generate a slug property value automatically from the values of another property specified in the model class.

A separate configuration file defines if the slug values are generated on the object creation or update times, and if the slug value must be unique to be considered valid.

Innovation Award
PHP Programming Innovation award nominee
May 2021
Number 3
Model classes are often used to manage records that store information about the content associated with certain Web pages.

Ideally, the URLs of the pages should be easy to ready, so users may have an idea about what the pages contain when they see a URL of a page.

This package makes it easy to generate slug text from titles of pages stored in database records managed by Laravel model classes.

Manuel Lemos
Picture of Moamen Eltouny
  Performance   Level  
Name: Moamen Eltouny <contact>
Classes: 38 packages by
Country: Egypt Egypt
Age: 31
All time rank: 257626 in Egypt Egypt
Week rank: 192 Up4 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 22x

  Files folder image Files (6)  
File Role Description
Files folder imagesrc (3 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Plain text file README.md Class Class source

  Files folder image Files (6)  /  src  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Plain text file Sluggable.php Class Class source
  Plain text file SluggableServiceProvider.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:37
This week:0
All time:10,955
This week:71Up