Skip to content

Commit ba31ab5

Browse files
committed
fix
1 parent 1d832fd commit ba31ab5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Http/Controllers/DashboardController.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Cone\Root\Http\Controllers;
44

55
use Cone\Root\Root;
6+
use Illuminate\Http\Request;
67
use Illuminate\Http\Response;
78
use Illuminate\Support\Facades\Response as ResponseFactory;
89

@@ -11,10 +12,10 @@ class DashboardController extends Controller
1112
/**
1213
* Handle the incoming request.
1314
*/
14-
public function __invoke(Root $root): Response
15+
public function __invoke(Request $request, Root $root): Response
1516
{
1617
return ResponseFactory::view('root::dashboard', [
17-
'widgets' => $root->widgets->toArray(),
18+
'widgets' => $root->widgets->map->data($request)->all(),
1819
]);
1920
}
2021
}

0 commit comments

Comments
 (0)