Skip to content

Commit f60f9d4

Browse files
committed
refactor(namespace): prepend with msg91client
1 parent a2bc54a commit f60f9d4

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@ composer require craftsys/msg91-laravel
2828

2929
### Laravel 5.5+
3030

31-
If you're using Laravel 5.5 or above, the package will automatically register the `Craftsys\Laravel\MSGClient91\MSG91ServiceProvider` provider and aliases `Craftsys\Laravel\MSGClient91\Facade` facade to `MSG91`.
31+
If you're using Laravel 5.5 or above, the package will automatically register the `Craftsys\MSG91Client\Laravel\MSG91ServiceProvider` provider and aliases `Craftsys\MSG91Client\Laravel\Facade` facade to `MSG91`.
3232

3333
### Laravel 5.4 and below
3434

35-
Add `Craftsys\Laravel\MSGClient91\MSG91ServiceProvider` to the `providers` array in your `config/app.php`:
35+
Add `Craftsys\MSG91Client\Laravel\MSG91ServiceProvider` to the `providers` array in your `config/app.php`:
3636

3737
```php
3838
'providers' => [
3939
// Other service providers...
40-
Craftsys\Laravel\MSGClient91\MSG91ServiceProvider::class,
40+
Craftsys\MSG91Client\Laravel\MSG91ServiceProvider::class,
4141
],
4242
```
4343

4444
If you want to use the facade interface, you can `use` the facade class when needed:
4545

4646
```php
47-
use Craftsys\Laravel\MSGClient91\Facade;
47+
use Craftsys\MSG91Client\Laravel\Facade;
4848
```
4949

5050
Or add an alias in your `config/app.php`
5151

5252
```php
5353
'aliases' => [
5454
// other aliases here
55-
'MSG91' => Craftsys\Laravel\MSGClient91\Facade::class,
55+
'MSG91' => Craftsys\MSG91Client\Laravel\Facade::class,
5656
],
5757
```
5858

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
},
3939
"laravel": {
4040
"aliases": {
41-
"MSG91": "Craftsys\\Laravel\\MSG91Client\\Facade"
41+
"MSG91": "Craftsys\\MSG91Client\\Laravel\\Facade"
4242
},
4343
"providers": [
44-
"Craftsys\\Laravel\\MSG91Client\\MSGServiceProvider"
44+
"Craftsys\\MSG91Client\\Laravel\\MSGServiceProvider"
4545
]
4646
}
4747
},
@@ -53,12 +53,12 @@
5353
"minimum-stability": "dev",
5454
"autoload": {
5555
"psr-4": {
56-
"Craftsys\\Laravel\\MSG91Client\\": "src/"
56+
"Craftsys\\MSG91Client\\Laravel\\": "src/"
5757
}
5858
},
5959
"autoload-dev": {
6060
"psr-4": {
61-
"Craftsys\\Laravel\\MSG91Client\\Test\\": "tests/"
61+
"Craftsys\\MSG91Client\\Laravel\\Test\\": "tests/"
6262
}
6363
},
6464
"scripts": {

src/Facade.php

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

3-
namespace Craftsys\Laravel\MSG91Client;
3+
namespace Craftsys\MSG91Client\Laravel;
44

55
use Craftsys\MSG91Client\Client;
66
use Illuminate\Support\Facades\Facade as BaseFacade;

src/MSGServiceProvider.php

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

3-
namespace Craftsys\Laravel\MSG91Client;
3+
namespace Craftsys\MSG91Client\Laravel;
44

55
use Craftsys\MSG91Client\Client;
66
use Illuminate\Support\ServiceProvider;

tests/ServiceProviderTest.php

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

3-
namespace Craftsys\Laravel\MSG91Client\Test;
3+
namespace Craftsys\MSG91Client\Laravel\Test;
44

55
use Craftsys\MSG91Client\Client;
66

tests/TestCase.php

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

3-
namespace Craftsys\Laravel\MSG91Client\Test;
3+
namespace Craftsys\MSG91Client\Laravel\Test;
44

55
use Orchestra\Testbench\TestCase as BaseTestCase;
6-
use Craftsys\Laravel\MSG91Client\MSGServiceProvider;
7-
use Craftsys\Laravel\MSG91Client\Facade;
6+
use Craftsys\MSG91Client\Laravel\MSGServiceProvider;
7+
use Craftsys\MSG91Client\Laravel\Facade;
88

99
abstract class TestCase extends BaseTestCase
1010
{

0 commit comments

Comments
 (0)