You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,6 @@ A Laravel package for [opensoft/rollout](https://github.com/opensoft/rollout)
12
12
composer require jaspaul/laravel-rollout
13
13
```
14
14
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
-
19
15
### Configuring the Service Provider
20
16
21
17
Open config/app.php and register the required service provider above your application providers.
@@ -28,6 +24,35 @@ Open config/app.php and register the required service provider above your applic
If you intend to use cache to store the settings for rollout, be sure to [enable the cache](https://laravel.com/docs/5.4/cache) for your Laravel application. Note if you are using the cache, a cache clear during deployment will cause your rollout settings to be purged. If you require persistence for these settings use the option below.
38
+
39
+
#### Setting up Persistent Storage
40
+
41
+
This will allow you to have rollout settings be persisted even if you clear the application cache for every deployment.
42
+
43
+
##### Running the Migrations
44
+
45
+
```sh
46
+
php artisan migrate
47
+
```
48
+
49
+
##### Configuring your Environment
50
+
51
+
```
52
+
ROLLOUT_STORAGE=database
53
+
ROLLOUT_TABLE=rollout
54
+
```
55
+
31
56
### Implementing Interfaces
32
57
33
58
Your rollout users must implement the `\Jaspaul\LaravelRollout\Helpers\User` interface. Often this will be your main user object:
0 commit comments