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

Exclude package from php artisan ide-helper:generate #1175

Closed
giandv opened this issue Mar 14, 2021 · 3 comments
Closed

Exclude package from php artisan ide-helper:generate #1175

giandv opened this issue Mar 14, 2021 · 3 comments

Comments

@giandv
Copy link

giandv commented Mar 14, 2021

I find genial this composer dependency, it helped me a lot in a migration from a Laravel 4 to a Laravel 8. I'm starting to use it also on a new project so I'd like to build my helper that exploit generated _ide_helper. And I was wondering if it possible to exclude from the php artisan ide-helper command: generate one or more Laravel packages, eg exclude Illuminate\Support\Facades\Mail and Illuminate\Support\Facades\Request. Can you help me, please? :)

@tjhunkin
Copy link

+1 to exclude certain paths. E.g. the package roquie/laravel-dusk-select2 fails in conjunction with this package. roquie/laravel-dusk-select2#14

@mfn
Copy link
Collaborator

mfn commented Mar 20, 2021

I see no issue, anyone up with a PR, some tests and maybe would be cool to have a specific example how to quickly reproduce this in new installation

@giandv
Copy link
Author

giandv commented Mar 20, 2021

Example it is possible to delete from the php artisan ide-helper: generate Mail, from the \Illuminate\Support\ Facades\ Mail package because for example I send mail through API and not with smtp protocol.
exclude_package_barryvdhlaravel-ide-helper_1
Also to me there are some genaration errors as said by @tjhunkin, for example the getMultiple method of the Cache class in Laravel 8, tells me that I do not have \Psr\SimpleCache\iterable
exclude_package_barryvdhlaravel-ide-helper_2
or it does not find the NotFoundExceptionInterface of the get() method of the App class.
exclude_package_barryvdhlaravel-ide-helper_3

@giandv giandv closed this as completed Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants