cybercog / laravel-paket

Composer GUI. Manage Laravel dependencies from web interface without switching to command line!

Home Page:https://komarev.com/sources/laravel-paket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Protect HTTP API in production environment

antonkomarev opened this issue · comments

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.

Implemented in #16