1 | <?php |
||
2 | |||
3 | namespace Raystech\StarterKit\Models; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Model; |
||
6 | use Cviebrock\EloquentSluggable\Sluggable; |
||
7 | use App\Traits\CustomSlugify; |
||
0 ignored issues
–
show
|
|||
8 | |||
9 | class Term extends Model |
||
10 | { |
||
11 | use Sluggable; |
||
12 | use CustomSlugify; |
||
13 | |||
14 | protected $fillable = ['name', 'slug', 'term_group']; |
||
15 | |||
16 | public function meta() { |
||
17 | return $this->hasMany('App\Models\TermMeta'); |
||
18 | } |
||
19 | public function sluggable() |
||
20 | { |
||
21 | return [ |
||
22 | 'slug' => [ |
||
23 | 'source' => 'name', |
||
24 | 'method' => function ($string, $separator) { |
||
25 | return $this->slugify_th($string, $separator); |
||
26 | } |
||
27 | ] |
||
28 | ]; |
||
29 | } |
||
30 | |||
31 | |||
32 | } |
||
33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths