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() public function searchProducts()
{ {
// return $this->productRepository->searchProductByAttribute(request('key')); // 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() public function discountedProducts()

View File

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

View File

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

View File

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

View File

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