PHPackages                             soapbox/laravel-rollout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. soapbox/laravel-rollout

ActiveLibrary

soapbox/laravel-rollout
=======================

A package to integrate rollout into your Laravel project.

v4.0.0(5y ago)019.5k[1 PRs](https://github.com/Soapbox/laravel-rollout/pulls)MITPHPPHP &gt;=7.2.5

Since Mar 29Pushed 1y agoCompare

[ Source](https://github.com/Soapbox/laravel-rollout)[ Packagist](https://packagist.org/packages/soapbox/laravel-rollout)[ RSS](/packages/soapbox-laravel-rollout/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (13)Versions (17)Used By (0)

Laravel Rollout
===============

[](#laravel-rollout)

A Laravel package for [opensoft/rollout](https://github.com/opensoft/rollout)

[![Build Status](https://camo.githubusercontent.com/15ab274124412c2cc09b9639376719731b7cfae5d482d33b3ad6b04302b0c4dd/68747470733a2f2f7472617669732d63692e6f72672f4a61737061756c2f6c61726176656c2d726f6c6c6f75742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Jaspaul/laravel-rollout) [![Coverage Status](https://camo.githubusercontent.com/dfa149d22ab08a99f57c1a8819a9034806877901169bd09d0defd869d20e60c0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a61737061756c2f6c61726176656c2d726f6c6c6f75742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jaspaul/laravel-rollout?branch=master) [![Code Climate](https://camo.githubusercontent.com/ed6b15594f3480f6d14d68955627e4341f4e1415c5d54db2792ec33e3d8cb796/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a61737061756c2f6c61726176656c2d726f6c6c6f75742f6261646765732f6770612e737667)](https://codeclimate.com/github/Jaspaul/laravel-rollout)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require jaspaul/laravel-rollout
```

### Configuring the Service Provider

[](#configuring-the-service-provider)

Package discovery will configure the service provider automatically.

### Setting up Storage

[](#setting-up-storage)

#### Publish the Configuration

[](#publish-the-configuration)

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

#### Setting up a Cache

[](#setting-up-a-cache)

If you intend to use cache to store the settings for rollout, be sure to [enable the cache](https://laravel.com/docs/6.x/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.

#### Setting up Persistent Storage

[](#setting-up-persistent-storage)

This will allow you to have rollout settings be persisted even if you clear the application cache for every deployment.

##### Running the Migrations

[](#running-the-migrations)

```
php artisan migrate
```

##### Configuring your Environment

[](#configuring-your-environment)

```
ROLLOUT_STORAGE=database
ROLLOUT_TABLE=rollout

```

### Implementing Interfaces

[](#implementing-interfaces)

##### User

[](#user)

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

```
