forked from rtconner/laravel-tagging
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tagging.php
31 lines (22 loc) · 946 Bytes
/
tagging.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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\Util::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'=>true,
// Model to use to store the tags in the database
'tag_model'=>'\Conner\Tagging\Model\Tag',
// Delimiter used within tags
'delimiter' => '-',
// Model to use for the relation between tags and tagged records
'tagged_model' => '\Conner\Tagging\Model\Tagged',
];