From ba31ab5e22f93cfa9c950ee5e456bdbaf62ec0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Wed, 18 Dec 2024 22:56:09 +0100 Subject: [PATCH] fix --- src/Http/Controllers/DashboardController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/DashboardController.php b/src/Http/Controllers/DashboardController.php index b2d30b34..b2a1ec4b 100644 --- a/src/Http/Controllers/DashboardController.php +++ b/src/Http/Controllers/DashboardController.php @@ -3,6 +3,7 @@ namespace Cone\Root\Http\Controllers; use Cone\Root\Root; +use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Response as ResponseFactory; @@ -11,10 +12,10 @@ class DashboardController extends Controller /** * Handle the incoming request. */ - public function __invoke(Root $root): Response + public function __invoke(Request $request, Root $root): Response { return ResponseFactory::view('root::dashboard', [ - 'widgets' => $root->widgets->toArray(), + 'widgets' => $root->widgets->map->data($request)->all(), ]); } }