From ad1c26f2fbceffe553b0c4d0c1c6f304b4f34d8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Mon, 13 Mar 2023 20:46:58 +0700 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B0=20-=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D1=8B=20=D0=BA=D0=BE=D0?= =?UTF-8?q?=BC=D0=BF=D0=B0=D0=BD=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/CompanyAreaController.php | 3 ++- app/Models/Contact.php | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/CompanyAreaController.php b/app/Http/Controllers/Admin/CompanyAreaController.php index 5e2f5a5..6a13b01 100644 --- a/app/Http/Controllers/Admin/CompanyAreaController.php +++ b/app/Http/Controllers/Admin/CompanyAreaController.php @@ -88,7 +88,8 @@ class CompanyAreaController extends Controller ->withErrors($validator); } else { $params = $request->all(); - $contact->update($params); + $company = Contact::find(1); + $company->update($params); return redirect()->route('admin.company.show', ['company' => 1]); } } diff --git a/app/Models/Contact.php b/app/Models/Contact.php index c843206..39110f5 100644 --- a/app/Models/Contact.php +++ b/app/Models/Contact.php @@ -8,4 +8,10 @@ use Illuminate\Database\Eloquent\Model; class Contact extends Model { use HasFactory; + + protected $fillable = ['email', 'telephone', 'title', 'title_t', 'description', + 'whatapp', 'telegram', 'title1', 'title2', 'title3', 'text1', 'text2', 'text3', + 'year', 'conf' + ]; + } -- 1.7.10.4