Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaspaul committed May 24, 2017
1 parent 4741e6e commit fb9e929
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ A Laravel package for [opensoft/rollout](https://github.com/opensoft/rollout)
composer require jaspaul/laravel-rollout
```

### Setting up a Cache

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.

### Configuring the Service Provider

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

### Setting up Storage

#### Publish the Configuration

```sh
php artisan vendor:publish --provider 'Jaspaul\LaravelRollout\ServiceProvider'
```

#### Setting up a Cache

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.

#### Setting up Persistent Storage

##### Running the Migrations

```sh
php artisan migrate
```

##### Configuring your Environment

```
ROLLOUT_STORAGE=database
ROLLOUT_TABLE=rollout
```

### Implementing Interfaces

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

0 comments on commit fb9e929

Please sign in to comment.