mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Update Carbon locale before rendering the tasks page
This commit is contained in:
parent
5a84fb6990
commit
fad1743e30
@ -14,7 +14,6 @@ namespace App\Http\Controllers\ClientPortal;
|
|||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Requests\ClientPortal\Tasks\ShowTasksRequest;
|
use App\Http\Requests\ClientPortal\Tasks\ShowTasksRequest;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
|
|
||||||
class TaskController extends Controller
|
class TaskController extends Controller
|
||||||
{
|
{
|
||||||
@ -26,6 +25,10 @@ class TaskController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function index(ShowTasksRequest $request)
|
public function index(ShowTasksRequest $request)
|
||||||
{
|
{
|
||||||
|
\Carbon\Carbon::setLocale(
|
||||||
|
auth('contact')->user()->preferredLocale()
|
||||||
|
);
|
||||||
|
|
||||||
return render('tasks.index');
|
return render('tasks.index');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user