From d2af85bde4a935d04bc4d1f5514babc411ae47e1 Mon Sep 17 00:00:00 2001 From: Naruto Date: Fri, 18 Oct 2019 22:20:24 +0700 Subject: [PATCH] no message --- app/Http/Controllers/GeneralController.php | 10 +++++----- config/scart.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/GeneralController.php b/app/Http/Controllers/GeneralController.php index de99e993..5c1b8c1c 100644 --- a/app/Http/Controllers/GeneralController.php +++ b/app/Http/Controllers/GeneralController.php @@ -3,7 +3,7 @@ namespace App\Http\Controllers; use App\Http\Controllers\Controller; -use App\Models\Subscribe; +use App\Models\ShopSubscribe; use Illuminate\Http\Request; use Mail; use View; @@ -40,11 +40,11 @@ public function __construct() } /** - * [emailSubscribe description] + * [emailShop description] * @param Request $request [description] * @return [type] [description] */ - public function emailSubscribe(Request $request) + public function emailShop(Request $request) { $data = $request->all(); $validator = $request->validate([ @@ -54,9 +54,9 @@ public function emailSubscribe(Request $request) 'subscribe_email.email' => trans('validation.email'), ]); - $checkEmail = Subscribe::where('email', $data['subscribe_email'])->first(); + $checkEmail = ShopSubscribe::where('email', $data['subscribe_email'])->first(); if (!$checkEmail) { - Subscribe::insert(['email' => $data['subscribe_email']]); + ShopSubscribe::insert(['email' => $data['subscribe_email']]); } return redirect()->back()->with(['message' => trans('front.subscribe.subscribe_success')]); } diff --git a/config/scart.php b/config/scart.php index 7bd74ac3..da95b20d 100644 --- a/config/scart.php +++ b/config/scart.php @@ -1,6 +1,6 @@ '3.0.4.2', + 'version' => '3.0.4.3', 'homepage' => 'https://s-cart.org', 'name' => 'S-Cart', 'title' => 'Free Open Source eCommerce for Business',