Skip to content

Commit 79978b1

Browse files
authored
Add the store scope to return right product title
1 parent 00e56d3 commit 79978b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Models/ProductOptionTitle.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ class ProductOptionTitle extends Model
1010

1111
public $timestamps = false;
1212

13+
protected static function booting(): void
14+
{
15+
static::addGlobalScope(new ForCurrentStoreWithoutLimitScope('option_id'));
16+
}
17+
1318
public function store()
1419
{
1520
return $this->belongsTo(config('rapidez.models.store'));

0 commit comments

Comments
 (0)