change slugs

This commit is contained in:
Shohrat 2023-10-24 17:54:07 +05:00
parent a37d08fe16
commit c546b59be9
5 changed files with 22 additions and 22 deletions

View File

@ -178,7 +178,7 @@ class Products extends ProductController
public function searchProducts()
{
// return $this->productRepository->searchProductByAttribute(request('key'));
return ProductResource::collection($this->productRepository->searchProductByAttributeDagdan(request('key'),16));
return ProductResource::collection($this->productRepository->searchProductByAttributeShekil(request('key'),16));
}
public function discountedProducts()

View File

@ -287,7 +287,7 @@ class SellerProduct extends SellerProductController
"weight" => 0,
"visible_individually" => 1,
"locale" => 'tm',
"channel" => 'Dagdan',
"channel" => 'Shekil',
"short_description" => $request->get('short_description'),
"images" => $request['images'],
"categories" => $request['categories'],

View File

@ -61,9 +61,9 @@ class CategoryTableSeeder extends Seeder
DB::table('category_translations')->insert([
[
'name' => 'Dagdan',
'slug' => 'dagdan',
'description' => 'Dagdan',
'name' => 'Shekil',
'slug' => 'shekil',
'description' => 'Shekil',
'meta_title' => '',
'meta_description' => '',
'meta_keywords' => '',
@ -71,9 +71,9 @@ class CategoryTableSeeder extends Seeder
'locale' => 'en',
],
[
'name' => 'Dagdan',
'slug' => 'dagdan',
'description' => 'Dagdan',
'name' => 'Shekil',
'slug' => 'shekil',
'description' => 'Shekil',
'meta_title' => '',
'meta_description' => '',
'meta_keywords' => '',
@ -81,9 +81,9 @@ class CategoryTableSeeder extends Seeder
'locale' => 'ru',
],
[
'name' => 'Dagdan',
'slug' => 'dagdan',
'description' => 'Dagdan',
'name' => 'Shekil',
'slug' => 'shekil',
'description' => 'Shekil',
'meta_title' => '',
'meta_description' => '',
'meta_keywords' => '',
@ -91,9 +91,9 @@ class CategoryTableSeeder extends Seeder
'locale' => 'tm',
],
[
'name' => 'Dagdan',
'slug' => 'dagdan',
'description' => 'Dagdan',
'name' => 'Shekil',
'slug' => 'shekil',
'description' => 'Shekil',
'meta_title' => '',
'meta_description' => '',
'meta_keywords' => '',

View File

@ -18,7 +18,7 @@ class ChannelTableSeeder extends Seeder
DB::table('channels')->insert([
[
'id' => 1,
'code' => 'Dagdan',
'code' => 'Shekil',
'theme' => 'default',
'hostname' => config('app.url'),
'root_category_id' => 1,
@ -48,7 +48,7 @@ class ChannelTableSeeder extends Seeder
'id' => 1,
'channel_id' => 1,
'locale' => 'tr',
'name' => 'Dagdan',
'name' => 'Shekil',
'home_page_content' => '
<p>@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")</p>
<div class="banner-container">
@ -83,7 +83,7 @@ class ChannelTableSeeder extends Seeder
</ul>
</div>
',
'home_seo' => '{"meta_title": "Dagdan store", "meta_keywords": "Dagdan store meta keyword", "meta_description": "Dagdan store meta description"}',
'home_seo' => '{"meta_title": "Shekil store", "meta_keywords": "Shekil store meta keyword", "meta_description": "Shekil store meta description"}',
],
// [
// 'id' => 2,
@ -171,7 +171,7 @@ class ChannelTableSeeder extends Seeder
'id' => 4,
'channel_id' => 1,
'locale' => 'tm',
'name' => 'Dagdan',
'name' => 'Shekil',
'home_page_content' => '
<p>@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")</p>
<div class="banner-container">
@ -206,7 +206,7 @@ class ChannelTableSeeder extends Seeder
</ul>
</div>
',
'home_seo' => '{"meta_title": "Dagdan store", "meta_keywords": "Dagdan store meta keyword", "meta_description": "Dagdan store meta description"}',
'home_seo' => '{"meta_title": "Shekil store", "meta_keywords": "Shekil store meta keyword", "meta_description": "Shekil store meta description"}',
],
[
'id' => 5,
@ -294,7 +294,7 @@ class ChannelTableSeeder extends Seeder
'id' => 7,
'channel_id' => 1,
'locale' => 'ru',
'name' => 'Dagdan',
'name' => 'Shekil',
'home_page_content' => '
<p>@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")</p>
<div class="banner-container">
@ -329,7 +329,7 @@ class ChannelTableSeeder extends Seeder
</ul>
</div>
',
'home_seo' => '{"meta_title": "Dagdan store", "meta_keywords": "Dagdan store meta keyword", "meta_description": "Dagdan store meta description"}',
'home_seo' => '{"meta_title": "Shekil store", "meta_keywords": "Shekil store meta keyword", "meta_description": "Shekil store meta description"}',
],
[
'id' => 8,

View File

@ -73,7 +73,7 @@ class ProductRepository extends WProductRepository
return $qb->paginate($limit);
}
public function searchProductByAttributeDagdan($term, $perPage)
public function searchProductByAttributeShekil($term, $perPage)
{
$channel = core()->getRequestedChannelCode();