fixed urk

This commit is contained in:
Edward Yang 2022-06-27 20:46:47 +08:00
parent 797065e505
commit 447eb80968
1 changed files with 5 additions and 0 deletions

View File

@ -53,4 +53,9 @@ class Product extends Model
{
return json_decode($this->variables, true);
}
public function getUrlAttribute()
{
return shop_route('products.show', ['product' => $this]);
}
}