Skip to content

laravel-shift/laravel-unleash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Unleash

Build Status codecov

An Unleash client for Laravel.

Installation

composer require mikefrancis/laravel-unleash

Export package config:

php artisan vendor:publish --provider="MikeFrancis\LaravelUnleash\ServiceProvider"

Configuration

Documentation for configuration can be found in config/unleash.php.

Usage

use \MikeFrancis\LaravelUnleash\Unleash; $unleash = app(Unleash::class); if ($unleash->isFeatureEnabled('myAwesomeFeature')) { // Congratulations, you can see this awesome feature! } if ($unleash->isFeatureDisabled('myAwesomeFeature')) { // Check back later for more features! } $allFeatures = $unleash->getFeatures();

Blade

Blade directive for checking if a feature is enabled:

@featureEnabled('myAwesomeFeature') Congratulations, you can see this awesome feature! @endfeatureEnabled

Or if a feature is disabled:

@featureDisabled('myAwesomeFeature') Check back later for more features! @endfeatureDisabled

About

🔘 An Unleash client for Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%