Skip to content

Commit

Permalink
Merge pull request #29 from Formfeed-UK/dev
Browse files Browse the repository at this point in the history
fix: remove controller typehint
  • Loading branch information
ianrobertsFF authored Jan 7, 2023
2 parents 5304962 + 003727e commit 420158b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Http/Middleware/InterceptBreadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Closure;

use Illuminate\Routing\Controller;
use Illuminate\View\View;
use Illuminate\Http\Request;

Expand Down Expand Up @@ -59,7 +58,7 @@ protected function getBreadcrumbs(NovaRequest $request) {
return $breadcrumbs;
}

protected function isPageController(Controller $controller) {
protected function isPageController($controller) {
return ((new \ReflectionClass($controller))?->getNamespaceName() ?? false) === "Laravel\Nova\Http\Controllers\Pages";
}
}

0 comments on commit 420158b

Please sign in to comment.