Fixes on tag_Groups and variations, add migrations

This commit is contained in:
Ludovic CANDELLIER
2022-01-25 22:25:18 +01:00
parent 9b6bac5545
commit ed1d87a7d1
39 changed files with 1125 additions and 21 deletions

View File

@@ -2,6 +2,8 @@
namespace App\Repositories\Shop;
use Illuminate\Support\Str;
use App\Models\Shop\Variation;
class Variations
@@ -33,7 +35,7 @@ class Variations
public static function getName($variation)
{
return $variation->package->value . ' ' . $variation->quantity . ' ' . ($variation->unity->value ?? null);
return $variation->package->value . ' ' . $variation->quantity . ' ' . ($variation->unity->value ?? null) . ' ' . Str::limit($variation->description, 15, ' (...)');
}
public static function buildName($data)