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: 5 months ago
Size: 202 bytes
 

Contents

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

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

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

For more information send a message to info at phpclasses dot org.