Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

pabloleone/laravel-flag

Repository files navigation

Laravel 4 Flag

Latest Stable Version Total Downloads Latest Unstable Version License

This Laravel 4 package provides a way to flag your flags to avoid unwanted changes.

Flag Demo

Installation

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.

Configuration

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

Template

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.

See: http://laravel.com/docs/packages#package-views

About

Add a flag to your Laravel environments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages