nishantsoni/artisan-remover 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nishantsoni/artisan-remover

Composer 安装命令:

composer require nishantsoni/artisan-remover

包简介

An package for remove artisan commands in the laravel application, some times there is a need to remove some cmds from the production for security reason.

README 文档

README

Sometimes there is a need to remove the artisan commands from the productions for the security reason, so by this package you can remove the artisan commands from artisan commands list.

Installation & Configuration

composer require nishantsoni/artisan-remover

Once this operation completes, the next step is to add the service provider. Open config/app.php, and add a new item to the service providers array-

\Nishantsoni\Artisanremover\ArtisanRemoverServiceProvider::class,

Next step is to clear the configuration cache-

php artisan config:clear

How to use this package : Example-

Once you have done all the above steps, then you just need to set the ENV variable in .env file and its value will be artisan-commands which you want to remove, example :

REMOVE_COMMANDS=migrate:refresh

If you want to remove some more commands then you just need to add by comma, like this :

REMOVE_COMMANDS=migrate:refresh,migrate:reset,migrate:fresh,cache:clear

Now You will see in the commands list, the above commands are removed.

it's ready for use!!!!

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固