From dd76fda2746858e6850f92b5def973eeaffc37a8 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 3 Aug 2022 15:28:27 +1000 Subject: [PATCH] Hosting domain_name input, ensure we redirect back to the update page --- app/Http/Controllers/ServiceController.php | 2 ++ resources/views/theme/backend/adminlte/service/home.blade.php | 2 +- .../theme/backend/adminlte/service/widget/host/update.blade.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ServiceController.php b/app/Http/Controllers/ServiceController.php index cef2169..8924606 100644 --- a/app/Http/Controllers/ServiceController.php +++ b/app/Http/Controllers/ServiceController.php @@ -10,6 +10,7 @@ use Illuminate\Support\Collection; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Mail; +use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Validator; use Illuminate\View\View; use Symfony\Component\HttpKernel\Exception\HttpException; @@ -379,6 +380,7 @@ class ServiceController extends Controller public function update(Request $request,Service $o) { if ($o->type->validation()) { + Session::put('service_update',true); $validator = Validator::make($x=$request->post($o->category),$o->type->validation()); if ($validator->fails()) { diff --git a/resources/views/theme/backend/adminlte/service/home.blade.php b/resources/views/theme/backend/adminlte/service/home.blade.php index ba87fc7..29975f5 100644 --- a/resources/views/theme/backend/adminlte/service/home.blade.php +++ b/resources/views/theme/backend/adminlte/service/home.blade.php @@ -92,7 +92,7 @@ @include('service.widget.internal') -
+
@include('service.widget.update')
@endcan diff --git a/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php b/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php index bc5ecdf..d77c817 100644 --- a/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php +++ b/resources/views/theme/backend/adminlte/service/widget/host/update.blade.php @@ -7,7 +7,7 @@
- +
.