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

Migrations problem #11

Closed
matiux opened this issue Dec 4, 2014 · 10 comments
Closed

Migrations problem #11

matiux opened this issue Dec 4, 2014 · 10 comments

Comments

@matiux
Copy link

matiux commented Dec 4, 2014

Hi,
I have a problem with migrations command:

php artisan firewall:tables

[InvalidArgumentException]
There are no commands defined in the "firewall" namespace.

How can I solve?

Thanks

@antonioribeiro
Copy link
Owner

Just tested it here and it's working fine. Check if you added the service provider correctly.

@matiux
Copy link
Author

matiux commented Dec 4, 2014

The service provider seems ok:

'PragmaRX\Firewall\Vendor\Laravel\ServiceProvider',

in app.php

@matiux
Copy link
Author

matiux commented Dec 4, 2014

Any idea?

@antonioribeiro
Copy link
Owner

Execute (on Linux or Mac)

composer show | grep pragmarx

And show me the results, please.

@matiux
Copy link
Author

matiux commented Dec 5, 2014

Execute on Linux (Debian testing)

$ composer show | grep pragmarx
pragmarx/ci
pragmarx/deeployer
pragmarx/firewall
pragmarx/glottos
pragmarx/google2fa
pragmarx/sqli
pragmarx/steroids
pragmarx/support
pragmarx/tracker
pragmarx/ua-parser
pragmarx/zipcode

Thank you so mych

@antonioribeiro
Copy link
Owner

Odd, it should show some package versions, like this:

pragmarx/tracker
pragmarx/ua-parser
pragmarx/zipcode
pragmarx/firewall             v0.2.0  A Laravel 4.1+ IP whitelisting and blacklisting
pragmarx/support              v0.3.5  PragmaRX components support package
pragmarx/tracker              v0.7.2  A Laravel 4.1+ Visitor Tracker
pragmarx/ua-parser            v0.3.4  DO NOT USER THIS PACKAGE DIRECTLY, pleas go to 

@matiux
Copy link
Author

matiux commented Dec 5, 2014

Sorry, I got the command wrong, so the output is this:

$ composer show | grep pragmarx
pragmarx/ci
pragmarx/deeployer
pragmarx/firewall
pragmarx/glottos
pragmarx/google2fa
pragmarx/sqli
pragmarx/steroids
pragmarx/support
pragmarx/tracker
pragmarx/ua-parser
pragmarx/zipcode
pragmarx/firewall v0.2.0 A Laravel 4.1+ IP whitelisting and blacklisting
pragmarx/support v0.3.5 PragmaRX components support package

@antonioribeiro
Copy link
Owner

Yeah, as you can see the versions of

pragmarx/firewall    v0.2.0  A Laravel 4.1+ IP whitelisting and blacklisting
pragmarx/support    v0.3.5 PragmaRX components support package

Are exactly like mine. I was thinking an old pragmarx/support could do that but we are using the same. So I'm now out of clues.

@matiux
Copy link
Author

matiux commented Dec 5, 2014

Ok, I have solved.
The problem has that I had put service provider only in app.php.
Now, I added service provider also in local/app.php and it works

@antonioribeiro
Copy link
Owner

Nice, I'll remember that next time. Thank you.

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