Init
This commit is contained in:
32
config/tagging.php
Normal file
32
config/tagging.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// Datatype for primary keys of your models.
|
||||
// used in migrations only
|
||||
'primary_keys_type' => 'integer', // 'string' or 'integer'
|
||||
|
||||
// Value of are passed through this before save of tags
|
||||
'normalizer' => '\Conner\Tagging\TaggingUtility::slug',
|
||||
|
||||
// Display value of tags are passed through (for front end display)
|
||||
'displayer' => '\Illuminate\Support\Str::title',
|
||||
|
||||
// Database connection for Conner\Taggable\Tag model to use
|
||||
// 'connection' => 'mysql',
|
||||
|
||||
// When deleting a model, remove all the tags first
|
||||
'untag_on_delete' => true,
|
||||
|
||||
// Auto-delete unused tags from the 'tags' database table (when they are used zero times)
|
||||
'delete_unused_tags' => false,
|
||||
|
||||
// Delimiter used within tags
|
||||
'delimiter' => '-',
|
||||
|
||||
// Model to use to store the tags in the database
|
||||
'tag_model' => '\Conner\Tagging\Model\Tag',
|
||||
|
||||
'tagged_model' => '\Conner\Tagging\Model\Tagged',
|
||||
|
||||
'tag_group_model' => '\Conner\Tagging\Model\TagGroup',
|
||||
];
|
Reference in New Issue
Block a user