PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 36 This week: 1All time: 10,913 This week: 560Up
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: 36 packages by
Country: Egypt Egypt
Age: 31
All time rank: 259926 in Egypt Egypt
Week rank: 52 Up1 in Egypt Egypt Up
Innovation award
Innovation award
Nominee: 20x

  Files folder image Files  
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  /  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:36
This week:1
All time:10,913
This week:560Up