-
Notifications
You must be signed in to change notification settings - Fork 6
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
Exclude helpers from Laravel 5.7 #4
Comments
Hi @zorca, The following works on my end to exclude Illuminate's Foundation helpers: "extra": {
"exclude-from-files": [
"laravel/framework/src/Illuminate/Foundation/helpers.php"
]
} Can you verify that helpers file is not in the array found in: If the file is present, try regenerating your autoloader with: composer dump-autoload |
I think this is a problem with Windows. |
#5 Windows path fix |
You are my hero. Please state on the README that full path to file relative to vendor is what should be used (not its namespaced name or relative to the project itself). At least, that's what has worked for me on Windows I also had to dump autoload to get it working. Thank you so much |
Good point about confusion in the case of laravel/framework vs illuminate/support. |
I tried to exclude the helper file from Laravel 5.7. I need it to run Laravel functionality on Wordpress.
My code:
"exclude-from-files": [ "laravel/framework/src/Illuminate/Foundation/helpers.php" ]
But it didn't work.
P. S. If it is easy, pls add the output of the package exception messages, if it is found.
The text was updated successfully, but these errors were encountered: