| Package Data | |
|---|---|
| Maintainer Username: | bkuhl |
| Maintainer Contact: | bkuhl@indatus.com (Ben Kuhl) |
| Package Create Date: | 2015-02-09 |
| Package Last Update: | 2015-02-09 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-29 03:02:23 |
| Package Statistics | |
|---|---|
| Total Downloads: | 2,154 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 9 |
| Total Watchers: | 2 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
Guardian is a Laravel package that allows you to protect more than just the production environment from potentially destructive tasks.
Supported artisan commands:
migrate:refresh
migrate:reset
db:seed
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