Skip to content
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

Route:view() are not listed when using --except-vendor #41416

Closed
alisaleem27 opened this issue Mar 9, 2022 · 2 comments · Fixed by #41465
Closed

Route:view() are not listed when using --except-vendor #41416

alisaleem27 opened this issue Mar 9, 2022 · 2 comments · Fixed by #41465
Labels

Comments

@alisaleem27
Copy link
Contributor

alisaleem27 commented Mar 9, 2022

  • Laravel Version: 9.4.1
  • PHP Version: 8.1.1

Description:

Any routes defined using the Route::view() method are not shown in the route list when ignoring vendor routes.

Since these routes are defined in the users app, they should be shown even when ignoring vendor routes from the list.

Could this be occurring because the view() method forwards the actual handling to a controller located in the vendor directory?

Steps To Reproduce:

  1. Start from clean Laravel installation.
  2. Replace the contents of routes/web.php with the following
<?php

Route::view('/', 'welcome');
  1. Run php artisan route:list --except-vendor
Expected Result
GET|HEAD  / .........................................................
Actual Result
Your application doesn't have any routes matching the given criteria.
@selcukcukur
Copy link
Contributor

I did not encounter the problem you describe. @alisaleem27

@karmadice
Copy link

@alisaleem27 I using Laravel in same environment and I am not able to duplicate this behaviour. Maybe one of the package that you have used is causing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants