indatus/guardian

Allows you to protect more than just the production environment from potentially destructive tasks
2,154 9
Install
composer require indatus/guardian
Latest Version:v1.0
PHP:>=5.4
License:MIT
Last Updated:Feb 9, 2015
Links: GitHub  ·  Packagist
Maintainer: bkuhl

Guardian

Guardian is a Laravel package that allows you to protect more than just the production environment from potentially destructive tasks.


Latest Stable Version Total Downloads Build Status

  • Adds confirmation dialog for destructive commands to configurable environment list

Supported artisan commands:

  • migrate:refresh
  • migrate:reset
  • db:seed
  • Any other command that uses this package's ConfirmableTrait

Requirements

You can install the library via Composer by running:

composer require indatus/guardian

Add this line to the providers array in your app/config/app.php file :

        'Indatus\Guardian\ServiceProvider',

By default this package adds protection for a demo environment in addition to Laravel's native production protection. You can customize this environment list by customizing the package config.

For Laravel 4: php artisan config:publish indatus/guardian

For Laravel 5+: php artisan publish:config indatus/guardian