Download the PHP package mikefrancis/laravel-unleash without Composer
On this page you can find all versions of the php package mikefrancis/laravel-unleash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mikefrancis/laravel-unleash
More information about mikefrancis/laravel-unleash
Files in mikefrancis/laravel-unleash
Package laravel-unleash
Short Description An Unleash client for Laravel
License MIT
Informations about the package laravel-unleash
Laravel Unleash
An Unleash client for Laravel.
Installation
Export package config:
Configuration
Documentation for configuration can be found in config/unleash.php.
Usage
Facades
You can use the Unleash
facade:
or use the generically named Feature
facade:
Dynamic Arguments
If your strategy relies on dynamic data at runtime, you can pass additional arguments to the feature check functions:
Blade
Blade directive for checking if a feature is enabled:
Or if a feature is disabled:
You cannot currently use dynamic strategy arguments with Blade template directives.
Middleware
This package includes middleware that will deny routes depending on whether a feature is enabled or not.
To use the middle, add the following to your app/Http/Kernel.php
:
You can then use the middleware in your routes:
or in your controllers like so:
You cannot currently use dynamic strategy arguments with Middleware.
All versions of laravel-unleash with dependencies
illuminate/support Version ^5.8|^6|^7|^8|^9|^10.0
illuminate/http Version ^5.8|^6|^7|^8|^9|^10.0
illuminate/contracts Version ^5.8|^6|^7|^8|^9|^10.0