From dd46d4e2657cedefec24324a09683342bfa6f08f Mon Sep 17 00:00:00 2001 From: Ritikesh yadav Date: Thu, 13 Jun 2024 16:41:32 +0530 Subject: [PATCH] fixed slug issues --- app/Imports/AlternativeInvestmentFundImport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Imports/AlternativeInvestmentFundImport.php b/app/Imports/AlternativeInvestmentFundImport.php index c17b38b..ecf1583 100644 --- a/app/Imports/AlternativeInvestmentFundImport.php +++ b/app/Imports/AlternativeInvestmentFundImport.php @@ -68,7 +68,7 @@ class AlternativeInvestmentFundImport implements ToCollection, WithHeadingRow AlternativeInvestmentFund::create([ 'products_id' => $product->id, - 'slug' => $count < 1 ? Str::slug($row['name_of_the_fund']) : Str::slug($row['name_of_the_fund']) . '-' . $count + 1, + 'slug' => Str::slug($row['name_of_the_fund']) . '-' . $count+1, 'fund_name' => $row['name_of_the_fund'], 'registration_number' => $row['registration_no'] ?? null, 'fund_category' => $row['fund_category_iiiiii'],