Skip to content

Update: Fix Error spatie/laravel-missing-page-redirector #44568

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/Illuminate/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use Illuminate\Support\Traits\Macroable;
use Laravel\SerializableClosure\SerializableClosure;
use LogicException;
use ReflectionFunction;
use Symfony\Component\Routing\Route as SymfonyRoute;

class Route
Expand Down Expand Up @@ -234,7 +235,16 @@ protected function runCallable()
$callable = unserialize($this->action['uses'])->getClosure();
}

return $this->container[CallableDispatcher::class]->dispatch($this, $callable);
return $this->container[CallableDispatcher::class]
->dispatch($this,
$callable(...array_values(
$this->resolveMethodDependencies(
$this->parametersWithoutNulls(),
new ReflectionFunction($callable
)
)
))
);
}

/**
Expand Down