Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Dec 18, 2024
1 parent 1d832fd commit ba31ab5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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(),
]);
}
}

0 comments on commit ba31ab5

Please sign in to comment.