Skip to content

Commit

Permalink
Refactor show view (wip).
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseleite committed Nov 8, 2023
1 parent a197fa1 commit 9e7f5b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/ReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public function show(Request $request, $id)
{
abort_unless(User::current()->can('view seo reports'), 403);

return Report::find($id)->withPages();
$report = Report::find($id)->withPages();

return view('seo-pro::reports.show', ['report' => $report]);
}

public function destroy($id)
Expand Down

0 comments on commit 9e7f5b2

Please sign in to comment.