1 | <?php |
||
4 | trait Sluggable |
||
5 | { |
||
6 | /** |
||
7 | * Create a unique slug |
||
8 | * @param $value |
||
9 | * @param $id |
||
10 | * @return string |
||
11 | */ |
||
12 | public function createSlug($value, $id = 0) |
||
35 | |||
36 | /** |
||
37 | * Get similar slugs |
||
38 | * @param $slug |
||
39 | * @param $id |
||
40 | * @return mixed |
||
41 | */ |
||
42 | protected function getRelatedSlugs($slug, $id = 0) |
||
46 | } |
When comparing two booleans, it is generally considered safer to use the strict comparison operator.