Protect HTTP API in production environment
antonkomarev opened this issue · comments
Anton Komarev commented
Before 1.0 release we must have mechanism to protect production applications from developers mistakes.
- requirement could be added to
composer.json
without--dev
flag - requirements could be installed on production without
--no-dev
flag
By default Paket should be available on local
environment only.
This behavior could be configured in config/paket.php
file paket.middlewares
key.
Authorize
middleware class is responsible for this restriction.
You may export configuration file using the php artisan vendor:publish --tag=paket-config
command.
Anton Komarev commented
Implemented in #16