@@ -14,7 +14,7 @@ composer require mikefrancis/laravel-unleash
14
14
Export package config:
15
15
16
16
``` bash
17
- php artisan vendor:publish --provider=" MikeFrancis\ LaravelUnleash\ServiceProvider"
17
+ php artisan vendor:publish --provider=" LaravelUnleash\ServiceProvider"
18
18
```
19
19
20
20
## Configuration
@@ -24,7 +24,7 @@ Documentation for configuration can be found in [config/unleash.php](https://git
24
24
## Usage
25
25
26
26
``` php
27
- use \MikeFrancis\ LaravelUnleash\Unleash;
27
+ use LaravelUnleash\Unleash;
28
28
29
29
$unleash = app(Unleash::class);
30
30
@@ -84,7 +84,7 @@ $allFeatures = Feature::all();
84
84
If your strategy relies on dynamic data at runtime, you can pass additional arguments to the feature check functions:
85
85
86
86
``` php
87
- use \MikeFrancis\ LaravelUnleash\Unleash;
87
+ use LaravelUnleash\Unleash;
88
88
use Config;
89
89
90
90
$unleash = app(Unleash::class);
@@ -129,8 +129,8 @@ To use the middle, add the following to your `app/Http/Kernel.php`:
129
129
``` php
130
130
protected $routeMiddleware = [
131
131
// other middleware
132
- 'feature.enabled' => \MikeFrancis\ LaravelUnleash\Middleware\FeatureEnabled::class,
133
- 'feature.disabled' => \MikeFrancis\ LaravelUnleash\Middleware\FeatureDisabled::class,
132
+ 'feature.enabled' => \LaravelUnleash\Middleware\FeatureEnabled::class,
133
+ 'feature.disabled' => \LaravelUnleash\Middleware\FeatureDisabled::class,
134
134
];
135
135
```
136
136
@@ -160,4 +160,4 @@ class ExampleController extends Controller
160
160
}
161
161
```
162
162
163
- You cannot currently use dynamic strategy arguments with Middleware.
163
+ You cannot currently use dynamic strategy arguments with Middleware.
0 commit comments