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

You must call one of in() or append() methods before iterating over a Finder. #291

Open
itsmill3rtime opened this issue Sep 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@itsmill3rtime
Copy link

In the latest versions of Laravel, if you install the Actions package and register in your app service provider boot method Actions::registerCommands();, it will return a LogicException: "You must call one of in() or append() methods before iterating over a Finder." IF you do not have any actions created yet and you try to run any artist commands, composer installs, etc. It tries to iterate on the Actions folder but it doesn't not exist yet.

I will say that i am on windows, so that may behave differently than linux/mac for this scenario. But as soon as i have the actions folder i can then do the registerCommands() and it will work fine when i try to run any artisan command

@ahosker
Copy link

ahosker commented Sep 15, 2024

I'm getting the same error.

image

@xaamin
Copy link

xaamin commented Sep 25, 2024

Create an Actions path inside app/ to ride off this error, that worked for me.

@Wulfheart Wulfheart added the bug Something isn't working label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants