1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Update Carbon locale before rendering the tasks page

This commit is contained in:
Benjamin Beganović 2021-05-18 11:08:26 +02:00
parent 5a84fb6990
commit fad1743e30

View File

@ -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');
}
}