Skip to content

Commit

Permalink
Add back $route param but keep it useless
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Sep 15, 2021
1 parent 5541cb2 commit ad9af07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Component.php
Expand Up @@ -42,8 +42,11 @@ public function __construct($id = null)
Livewire::setBackButtonCache();
}

public function __invoke(Container $container)
public function __invoke(Container $container, Route $route)
{
// For some reason Octane doesn't play nice with the injected $route.
// We need to override it here. However, we can't remove the actual
// param from the method signature as it would break inheritance.
$route = request()->route();

try {
Expand Down

0 comments on commit ad9af07

Please sign in to comment.