Skip to content

Commit e1bc926

Browse files
authored
Merge pull request #167 from velstorelabs/feature/admin-validation-v2
Feature/admin validation v2
2 parents 8cde4bc + 18603a7 commit e1bc926

File tree

24 files changed

+29
-5
lines changed

24 files changed

+29
-5
lines changed

app/Http/Controllers/Store/ShopController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public function index(Request $request)
2424
];
2525

2626
$products = Product::with(['translation', 'variants.attributeValues'])
27+
->withCount('reviews')
28+
->withAvg('reviews', 'rating')
2729
->when(! empty($filters['category']), function ($query) use ($filters) {
2830
$query->whereIn('category_id', $filters['category']);
2931
})

resources/lang/ar/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'فيلستور',
56
'login' => 'تسجيل الدخول',
67
'email' => 'عنوان البريد الإلكتروني',
78
'password' => 'كلمة المرور',

resources/lang/de/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'Velstore',
56
'login' => 'Anmelden',
67
'email' => 'E-Mail-Adresse',
78
'password' => 'Passwort',

resources/lang/en/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'Velstore',
56
'login' => 'Login',
67
'email' => 'Email Address',
78
'password' => 'Password',

resources/lang/es/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'Velstore',
56
'login' => 'Iniciar sesión',
67
'email' => 'Correo electrónico',
78
'password' => 'Contraseña',

resources/lang/fa/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'ول‌استور',
56
'login' => 'ورود',
67
'email' => 'آدرس ایمیل',
78
'password' => 'رمز عبور',

resources/lang/fr/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'Velstore',
56
'login' => 'Se connecter',
67
'email' => 'Adresse e-mail',
78
'password' => 'Mot de passe',

resources/lang/hi/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'वेलस्टोर',
56
'login' => 'लॉगिन',
67
'email' => 'ईमेल पता',
78
'password' => 'पासवर्ड',

resources/lang/id/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'Velstore',
56
'login' => 'Masuk',
67
'email' => 'Alamat Email',
78
'password' => 'Kata Sandi',

resources/lang/it/cms.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'auth' => [
5+
'velstore' => 'Velstore',
56
'login' => 'Accesso',
67
'email' => 'Indirizzo email',
78
'password' => 'Password',

0 commit comments

Comments
 (0)