Skip to content

Commit fb9e929

Browse files
committed
Update readme.md
1 parent 4741e6e commit fb9e929

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

readme.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ A Laravel package for [opensoft/rollout](https://github.com/opensoft/rollout)
1212
composer require jaspaul/laravel-rollout
1313
```
1414

15-
### Setting up a Cache
16-
17-
Be sure to [enable the cache](https://laravel.com/docs/5.4/cache) for your Laravel application. This package uses the cache to store the rollout settings.
18-
1915
### Configuring the Service Provider
2016

2117
Open config/app.php and register the required service provider above your application providers.
@@ -28,6 +24,33 @@ Open config/app.php and register the required service provider above your applic
2824
]
2925
```
3026

27+
### Setting up Storage
28+
29+
#### Publish the Configuration
30+
31+
```sh
32+
php artisan vendor:publish --provider 'Jaspaul\LaravelRollout\ServiceProvider'
33+
```
34+
35+
#### Setting up a Cache
36+
37+
Be sure to [enable the cache](https://laravel.com/docs/5.4/cache) for your Laravel application. This package uses the cache to store the rollout settings.
38+
39+
#### Setting up Persistent Storage
40+
41+
##### Running the Migrations
42+
43+
```sh
44+
php artisan migrate
45+
```
46+
47+
##### Configuring your Environment
48+
49+
```
50+
ROLLOUT_STORAGE=database
51+
ROLLOUT_TABLE=rollout
52+
```
53+
3154
### Implementing Interfaces
3255

3356
Your rollout users must implement the `\Jaspaul\LaravelRollout\Helpers\User` interface. Often this will be your main user object:

0 commit comments

Comments
 (0)