Laravel package route not found #47064
Unanswered
PrasadChinwal
asked this question in
Q&A
Replies: 4 comments 2 replies
-
Did you find a solution for this issue? I am facing the same problem, it's very weird since it was working before without caching. Now I do need to cache the routes to make it work... |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, caching worked for me, but it's not the solution I want. I will have a
closer look the next days
…On Thu, 18 May 2023, 18:56 PrasadChinwal, ***@***.***> wrote:
Unfortunately no. I am still facing same issues. Are you saying that if
you cache the routes it will work?
—
Reply to this email directly, view it on GitHub
<#47064 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGTFEYHN753CB4GFFRERJWDXGZIB7ANCNFSM6AAAAAAX73XC5M>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
That’s what worked for me. If you are loading the package from a custom repository and you do have a sys link.
1. Delete your package in the vendor folder and run again composer install. This should install the package again in the vendor directory.
After this everything worked again as it should for me… (Even without caching)
… On 18 May 2023, at 21:36, PrasadChinwal ***@***.***> wrote:
Please let me know if you find a solution.
—
Reply to this email directly, view it on GitHub <#47064 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGTFEYHJUXEFKW4ZND5QHC3XGZ25XANCNFSM6AAAAAAX73XC5M>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
what I'm do when I facing a problem with the laravel cache when create package is
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a package for Laravel v10.9 and have loaded routes in my Service Provider boot method like so:
When I run
php artisan route:list
, I can see all my routes.Unfortunately when i try to visit the login route I get 404. I have tried:
loadRoutesFrom
to the register method instead of boot.composer dump-autoload
php artisan cache:clear
php artisan route:clear
php artisan config:clear
config/app.php
file after and before Laravel'sRouteServiceProvider
.Let me know if more details are needed.
Beta Was this translation helpful? Give feedback.
All reactions