This Laravel 4 package provides a way to flag your flags to avoid unwanted changes.
Begin by installing this package through Composer. Edit your project's composer.json
file to require pabloezequiel/flag
.
"require": {
"pabloezequiel/flag": "1.0.6"
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider. Open app/config/app.php
, and add a new item to the providers array.
'Pabloezequiel\Flag\FlagServiceProvider'
That's it! You're all set to go.
You have to add a list of flags you want to see the flag. To do it you have to publish the config file with this command.
php artisan config:publish pabloezequiel/flag
In the config file you can add a group of flags under a single name or multiple names. Check out the file and follow the instructions.
See: http://laravel.com/docs/packages#package-configuration
To override the template, publish the package template into your app with this command.
php artisan view:publish pabloezequiel/flag
Now go to your app/views/packages
and made all changes there.