Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 587a773

Browse files
committed
Remove first part of namespace
1 parent ed1a1b8 commit 587a773

25 files changed

+64
-64
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Laravel Unleash
22

3-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/56b0c6402eca49169cbeb3f404c2bff9)](https://app.codacy.com/manual/mikefrancis/laravel-unleash?utm_source=github.com&utm_medium=referral&utm_content=mikefrancis/laravel-unleash&utm_campaign=Badge_Grade_Dashboard)
4-
[![Packagist](https://img.shields.io/packagist/v/mikefrancis/laravel-unleash)](https://packagist.org/packages/mikefrancis/laravel-unleash) [![Build Status](https://github.com/mikefrancis/laravel-unleash/workflows/CI/badge.svg)](https://github.com/mikefrancis/laravel-unleash/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/mikefrancis/laravel-unleash/branch/master/graph/badge.svg)](https://codecov.io/gh/mikefrancis/laravel-unleash)
3+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/56b0c6402eca49169cbeb3f404c2bff9)](https://app.codacy.com/manual/laravel-unleash/laravel-unleash?utm_source=github.com&utm_medium=referral&utm_content=laravel-unleash/laravel-unleash&utm_campaign=Badge_Grade_Dashboard)
4+
[![Packagist](https://img.shields.io/packagist/v/laravel-unleash/laravel-unleash)](https://packagist.org/packages/laravel-unleash/laravel-unleash) [![Build Status](https://github.com/laravel-unleash/laravel-unleash/workflows/CI/badge.svg)](https://github.com/laravel-unleash/laravel-unleash/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/laravel-unleash/laravel-unleash/branch/master/graph/badge.svg)](https://codecov.io/gh/laravel-unleash/laravel-unleash)
55

66
An [Unleash](https://unleash.github.io) client for Laravel.
77

@@ -14,17 +14,17 @@ composer require mikefrancis/laravel-unleash
1414
Export package config:
1515

1616
```bash
17-
php artisan vendor:publish --provider="MikeFrancis\LaravelUnleash\ServiceProvider"
17+
php artisan vendor:publish --provider="LaravelUnleash\ServiceProvider"
1818
```
1919

2020
## Configuration
2121

22-
Documentation for configuration can be found in [config/unleash.php](https://github.com/mikefrancis/laravel-unleash/blob/master/config/unleash.php).
22+
Documentation for configuration can be found in [config/unleash.php](https://github.com/laravel-unleash/laravel-unleash/blob/master/config/unleash.php).
2323

2424
## Usage
2525

2626
```php
27-
use \MikeFrancis\LaravelUnleash\Unleash;
27+
use LaravelUnleash\Unleash;
2828

2929
$unleash = app(Unleash::class);
3030

@@ -84,7 +84,7 @@ $allFeatures = Feature::all();
8484
If your strategy relies on dynamic data at runtime, you can pass additional arguments to the feature check functions:
8585

8686
```php
87-
use \MikeFrancis\LaravelUnleash\Unleash;
87+
use LaravelUnleash\Unleash;
8888
use Config;
8989

9090
$unleash = app(Unleash::class);
@@ -129,8 +129,8 @@ To use the middle, add the following to your `app/Http/Kernel.php`:
129129
```php
130130
protected $routeMiddleware = [
131131
// 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,
134134
];
135135
```
136136

@@ -160,4 +160,4 @@ class ExampleController extends Controller
160160
}
161161
```
162162

163-
You cannot currently use dynamic strategy arguments with Middleware.
163+
You cannot currently use dynamic strategy arguments with Middleware.

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
},
1515
"autoload": {
1616
"psr-4": {
17-
"MikeFrancis\\LaravelUnleash\\": "src/"
17+
"LaravelUnleash\\": "src/"
1818
}
1919
},
2020
"autoload-dev": {
2121
"psr-4": {
22-
"MikeFrancis\\LaravelUnleash\\Tests\\": "tests/"
22+
"LaravelUnleash\\Tests\\": "tests/"
2323
}
2424
},
2525
"license": "MIT",
@@ -32,11 +32,11 @@
3232
"extra": {
3333
"laravel": {
3434
"providers": [
35-
"MikeFrancis\\LaravelUnleash\\ServiceProvider"
35+
"LaravelUnleash\\ServiceProvider"
3636
],
3737
"aliases": {
38-
"Unleash": "MikeFrancis\\LaravelUnleash\\Facades\\Unleash",
39-
"Feature": "MikeFrancis\\LaravelUnleash\\Facades\\Feature"
38+
"Unleash": "LaravelUnleash\\Facades\\Unleash",
39+
"Feature": "LaravelUnleash\\Facades\\Feature"
4040
}
4141
}
4242
}

config/unleash.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838

3939
// Mapping of strategies used to guard features on Unleash. The default strategies are already
4040
// mapped below, and more strategies can be added - they just need to implement the
41-
// `\MikeFrancis\LaravelUnleash\Strategies\Strategy` or
42-
// `\MikeFrancis\LaravelUnleash\Strategies\DynamicStrategy` interface. If you would like to disable
41+
// `\LaravelUnleash\Strategies\Strategy` or
42+
// `\LaravelUnleash\Strategies\DynamicStrategy` interface. If you would like to disable
4343
// a built-in strategy, please comment it out or remove it below.
4444
'strategies' => [
45-
'applicationHostname' => \MikeFrancis\LaravelUnleash\Strategies\ApplicationHostnameStrategy::class,
46-
'default' => \MikeFrancis\LaravelUnleash\Strategies\DefaultStrategy::class,
47-
'remoteAddress' => \MikeFrancis\LaravelUnleash\Strategies\RemoteAddressStrategy::class,
48-
'userWithId' => \MikeFrancis\LaravelUnleash\Strategies\UserWithIdStrategy::class,
45+
'applicationHostname' => \LaravelUnleash\Strategies\ApplicationHostnameStrategy::class,
46+
'default' => \LaravelUnleash\Strategies\DefaultStrategy::class,
47+
'remoteAddress' => \LaravelUnleash\Strategies\RemoteAddressStrategy::class,
48+
'userWithId' => \LaravelUnleash\Strategies\UserWithIdStrategy::class,
4949
],
5050
];

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace MikeFrancis\LaravelUnleash;
3+
namespace LaravelUnleash;
44

55
use GuzzleHttp\Client as GuzzleClient;
66
use Illuminate\Contracts\Config\Repository as Config;

src/Facades/Feature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace MikeFrancis\LaravelUnleash\Facades;
2+
namespace LaravelUnleash\Facades;
33

44
use Illuminate\Support\Facades\Facade;
55

src/Facades/Unleash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace MikeFrancis\LaravelUnleash\Facades;
2+
namespace LaravelUnleash\Facades;
33

44
use Illuminate\Support\Facades\Facade;
55

src/Middleware/FeatureDisabled.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace MikeFrancis\LaravelUnleash\Middleware;
3+
namespace LaravelUnleash\Middleware;
44

55
use Closure;
66
use Illuminate\Http\Request;
7-
use MikeFrancis\LaravelUnleash\Facades\Feature;
7+
use LaravelUnleash\Facades\Feature;
88

99
class FeatureDisabled
1010
{

src/Middleware/FeatureEnabled.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace MikeFrancis\LaravelUnleash\Middleware;
3+
namespace LaravelUnleash\Middleware;
44

55
use Closure;
66
use Illuminate\Http\Request;
7-
use MikeFrancis\LaravelUnleash\Facades\Feature;
7+
use LaravelUnleash\Facades\Feature;
88

99
class FeatureEnabled
1010
{

src/ServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace MikeFrancis\LaravelUnleash;
3+
namespace LaravelUnleash;
44

55
use Illuminate\Support\Facades\Blade;
66
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
7-
use MikeFrancis\LaravelUnleash\Unleash;
8-
use MikeFrancis\LaravelUnleash\Client;
7+
use LaravelUnleash\Unleash;
8+
use LaravelUnleash\Client;
99
use GuzzleHttp\ClientInterface;
1010

1111
class ServiceProvider extends IlluminateServiceProvider

src/Strategies/ApplicationHostnameStrategy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace MikeFrancis\LaravelUnleash\Strategies;
3+
namespace LaravelUnleash\Strategies;
44

55
use Illuminate\Http\Request;
66
use Illuminate\Support\Arr;
77
use Illuminate\Support\Str;
8-
use MikeFrancis\LaravelUnleash\Strategies\Contracts\Strategy;
8+
use LaravelUnleash\Strategies\Contracts\Strategy;
99

1010
class ApplicationHostnameStrategy implements Strategy
1111
{

0 commit comments

Comments
 (0)