PHPackages                             dev-moez/artisan-command-guard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dev-moez/artisan-command-guard

ActiveLibrary

dev-moez/artisan-command-guard
==============================

A package to prevent running critical artisan commands on production environment

1.0.1(3y ago)1181[1 PRs](https://github.com/dev-moez/artisan-command-guard/pulls)MITPHPPHP ^8.1

Since Mar 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dev-moez/artisan-command-guard)[ Packagist](https://packagist.org/packages/dev-moez/artisan-command-guard)[ RSS](/packages/dev-moez-artisan-command-guard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

[![](https://raw.githubusercontent.com/dev-moez/artisan-command-guard/main/assets/icons/icon.png)](https://raw.githubusercontent.com/dev-moez/artisan-command-guard/main/assets/icons/icon.png)

Artisan Command Guard
=====================

[](#artisan-command-guard)

####  🛡️ Artisan command guard laravel package

[](#---️-artisan-command-guard-laravel-package-)

Table of contents
-----------------

[](#table-of-contents)

- [📖 Introduction](#introduction)
- [🧰 Installation](#installation)
- [⚙️ Configuration](#configuration)

📖 Introduction
--------------

[](#book-introduction)

Artisan Command Guard is a Laravel package that prevents critical artisan commands to be run in production environment.

🧰 Installation
--------------

[](#toolbox-installation)

You can install the package via composer:

```
composer require dev-moez/artisan-command-guard

```

The package will automatically register itself.

And to publish the config and the migration files needed for the package, run the following artisan command:

```
php artisan artisan-command-guard:install

```

Or Manually:

You can publish the config file using the following command:

```
php artisan vendor:publish --tag="artisan-command-guard-config"

```

This is the contents of the published config file:

```
