Skip to content

Commit fda5300

Browse files
committed
Sort instructions in configuration section
1 parent 49e7fc8 commit fda5300

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

README.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,28 @@ class TenantTest extends LandlordTestCase
8585
```
8686
## Configuration
8787

88+
### Registering the Service Provider
89+
Laravel 11+ Add the service provider to your `bootstrap/providers.php`:
90+
91+
```php
92+
<?php
93+
94+
return [
95+
App\Providers\AppServiceProvider::class,
96+
ArmCm\LaravelTenancyTesting\ServiceProvider::class,
97+
];
98+
```
99+
100+
Laravel 10 Add the service provider to your `config/app.php`:
101+
102+
```php
103+
'providers' => [
104+
// Other Service Providers...
105+
106+
ArmCm\LaravelTenancyTesting\ServiceProvider::class,
107+
],
108+
```
109+
88110
### Publishing Configuration File
89111
You can publish the configuration file to customize the package behavior:
90112
The package uses the following configuration file to override:
@@ -126,27 +148,6 @@ return [
126148
];
127149
```
128150

129-
### Registering the Service Provider
130-
Laravel 11+ Add the service provider to your `bootstrap/providers.php`:
131-
132-
```php
133-
<?php
134-
135-
return [
136-
App\Providers\AppServiceProvider::class,
137-
ArmCm\LaravelTenancyTesting\ServiceProvider::class,
138-
];
139-
```
140-
141-
Laravel 10 Add the service provider to your `config/app.php`:
142-
143-
```php
144-
'providers' => [
145-
// Other Service Providers...
146-
147-
ArmCm\LaravelTenancyTesting\ServiceProvider::class,
148-
],
149-
```
150151
### Using Custom Tenant Model
151152
If you have a custom tenant model: `config/tenancy-testing.php`
152153
```php

0 commit comments

Comments
 (0)