Skip to content

Commit

Permalink
fix : none published config
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny authored Feb 10, 2022
1 parent 5c640d4 commit 103dd08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Tag extends Model
*/
public static function booted()
{
foreach(config('Pharaonic.taggable.children') as $name => $modelNamespace) {
foreach(config('Pharaonic.taggable.children', []) as $name => $modelNamespace) {
static::resolveRelationUsing($name, function ($model) use ($modelNamespace) {
return $model->morphedByMany($modelNamespace, 'taggable');
});
Expand Down

0 comments on commit 103dd08

Please sign in to comment.