PHP Classes

File: src/config.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   Laravel Sluggable   src/config.php   Download  
File: src/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Sluggable
Add a slug property to models used in Laravel apps
Author: By
Last change:
Date: 3 years ago
Size: 202 bytes


Class file image Download
return [
// Keep the slug Unique
'unique' => true,

// Generate slug on Eloquent Create
'onCreate' => true,

// Generate slug on Eloquent Update
'onUpdate' => true