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

Command Does Not Work #9

Closed
lrljoe opened this issue Jun 3, 2023 · 3 comments
Closed

Command Does Not Work #9

lrljoe opened this issue Jun 3, 2023 · 3 comments

Comments

@lrljoe
Copy link

lrljoe commented Jun 3, 2023

Running the command:

php artisan block-ip:block 252.2.2.2

Results in

The "ips" argument does not exist.

@lrljoe
Copy link
Author

lrljoe commented Jun 3, 2023

So I've rewritten a few chunks of the SP, removed the dependency on Spatie Package Tools and adjusted the commands, and it now works smoothly.

I'll issue a PR in due course

@michaelnabil230
Copy link
Owner

Hello, @lrljoe,

To ensure you have the latest version of the package before running the block-ip:block command, you can add a composer update command before it. Here's the updated command sequence:

composer update michaelnabil230/laravel-block-ip
php artisan block-ip:block 127.0.0.1 127.0.0.2

The composer update command will update the laravel-block-ip package to the latest version, and then you can proceed with executing the block-ip:block command.

Please note that running composer update will update all packages in your Laravel project to their latest versions. If you only want to update the laravel-block-ip package, you can specify it in the command as shown above.

Thank you for using https://github.com/michaelnabil230/laravel-block-ip.

If you have any further questions or need additional assistance, please let me know.

@lrljoe
Copy link
Author

lrljoe commented Jun 3, 2023

I definitely pulled the latest version and still had the same issue. I think it may be a CF issue depending on WAF approach, I'm trying to narrow it down, but presently have a working (adjusted) approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants