From fad1743e308be8ca10bb3db542089a3263504685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 18 May 2021 11:08:26 +0200 Subject: [PATCH] Update Carbon locale before rendering the tasks page --- app/Http/Controllers/ClientPortal/TaskController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ClientPortal/TaskController.php b/app/Http/Controllers/ClientPortal/TaskController.php index e4fd9c70a7..1319bda3d6 100644 --- a/app/Http/Controllers/ClientPortal/TaskController.php +++ b/app/Http/Controllers/ClientPortal/TaskController.php @@ -14,7 +14,6 @@ namespace App\Http\Controllers\ClientPortal; use App\Http\Controllers\Controller; use App\Http\Requests\ClientPortal\Tasks\ShowTasksRequest; -use Illuminate\Http\Request; class TaskController extends Controller { @@ -26,6 +25,10 @@ class TaskController extends Controller */ public function index(ShowTasksRequest $request) { + \Carbon\Carbon::setLocale( + auth('contact')->user()->preferredLocale() + ); + return render('tasks.index'); } }