-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[v11] Spark middleware does not exist #50298
Comments
You need to install Laravel Spark before you may use the middleware. |
@jbrooksuk maybe I am missing something, and sorry if that's the case. But is Spark now a Laravel dependency ? I just created a new Laravel application using the above mentioned command: Care to re-open or please clarify? This spark alias came with the framework. Thanks in advance. 🙏 |
Thanks for your time @crynobone I've updated #50304 (comment) with my findings. It's the VSCode PHP Intellisense (static analysis) that wrote those errors on my log file when indexing project files. While on this process, the error pops up in the logs. To reproduce it, you just need to force your editor to re-index project files. What annoys me is that I spent quite some time trying to debug this thing, I just saw it on my And the solution is to move the alias registration to spark package. I don't get the "convenience" in this case because you need to install spark anyway to use it. So why not have the alias when you install spark and remove it from framework code? Cheers |
Laravel Version
11
PHP Version
8.2
Database Driver & Version
sqlite
Description
The middleware is referenced here:
framework/src/Illuminate/Foundation/Configuration/Middleware.php
Line 739 in 7c680bb
I am not sure about the fix, or if there is something to fix other than removing that alias.
If it were to fix, maybe checking if the class exists before pushing it to router in
framework/src/Illuminate/Foundation/Http/Kernel.php
Line 456 in 7c680bb
Cheers
Steps To Reproduce
just a fresh laravel instalation with:
composer create-project laravel/laravel:"dev-master" laravel11
The text was updated successfully, but these errors were encountered: