-
Notifications
You must be signed in to change notification settings - Fork 22
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
Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found #66
Comments
I'm not sure, sorry. More than likely unique to yourself and your setup. Maybe try removing the vendor folder and composer.lock and try re-run Composer. Make sure the versions match up etc. If those fail, I'm afraid I don't know the answer. |
OK. Thank you! |
That worked! Thank you again! |
I still have the same issue, I have done the above and it is still the same |
I'm seeing the same issue on a fresh install on a pretty fresh Laravel install. |
Hmm, I'll see if I can replicate and if so, sort something out. |
I was able to work around by explicitly requiring Spaties package tools as a requirement (not dev) |
Interesting. Will still take a look. Ideally I want to take out all the Spatie stuff, it just causes problems |
According to their Package Skeleton, package tools should be in the main require not require-dev. https://github.com/spatie/package-skeleton-laravel/blob/main/composer.json |
Thanks for the guidance! I'll change it tomorrow, or if anyone wants to do a PR 😜 |
PR raised |
Fixed via #72 |
I installed this package in Laravel 10.48.20/PHP 8.2.22 and got the following error:
`Generating optimized autoload files
In ApprovalServiceProvider.php line 8:
Class "Spatie\LaravelPackageTools\PackageServiceProvider" not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
`
Any idea why this would happen?
The text was updated successfully, but these errors were encountered: