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
Environment Not Allowed #184
Comments
Hi there @vesper8, thank you for opening the issue and for noticing this. (I haven't noticed this personally as I haven't run I will take a look at this as this isn't the intended behavior as you state, it should be that the controllers are responding to actual requests and provide the routes. If for the interim you are happy to install the package as a |
Thank you @ReeceM, For now I'm ok with just enabling it on production. I'm glad it's on your radar now and hope it isn't too difficult to fix. On a side note, but not totally unrelated, I just tried to visit /maileclipse on production and receive this error
It stems from this line https://github.com/Qoraiche/laravel-mail-editor/blob/master/src/MailEclipse.php#L571 I suppose it's normal and not really a bug.. unsure if it's intended that Faker need to be installed in order for your package to function though. Anyone trying to access it in production would likely run into this issue. |
Hi @vesper8, Sorry for coming back to you late on this, I tested and can confirm the above issues that you mention. I am looking at the most practical and user intuitive way of allowing / disallowing the functionality by environment. e.g. by loading the Service Provider only in certain env. With the Will revert back once I have had a minute to look again at this. |
I noticed today that in production, if I try to run
php artisan route:list
from the CLI I get the error "Environment Not Allowed"I've read #166
And I understand why I'm getting the error, adding
production
to your package's config file makes this error go away.However I feel like this is a bug? I should be able to disable your Mail Editor package in production without it interfering with other parts of Laravel?
It seems to me like the only way to be able to run a basic CLI command such as
php artisan route:list
in production right now is to either uninstall your package or allow it inproduction
.I have a feeling this is not what you intended.
The text was updated successfully, but these errors were encountered: