PHPackages                             spotonlive/sl-assertions - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. spotonlive/sl-assertions

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

spotonlive/sl-assertions
========================

Assertions for Laravel 5.1

v0.0.2(10y ago)21.7kMITPHPPHP &gt;=5.4.0

Since Sep 10Pushed 7y ago2 watchersCompare

[ Source](https://github.com/spotonlive/sl-assertions)[ Packagist](https://packagist.org/packages/spotonlive/sl-assertions)[ Docs](https://github.com/spotonlive/sl-assertions)[ RSS](/packages/spotonlive-sl-assertions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Assertions for Laravel 5.1
==========================

[](#assertions-for-laravel-51)

[![Latest Stable Version](https://camo.githubusercontent.com/0c943a4146f623da876a942954ba863c3f1e510974fb6a8f62b66ecefc25c84b/68747470733a2f2f706f7365722e707567782e6f72672f73706f746f6e6c6976652f736c2d617373657274696f6e732f762f737461626c65)](https://packagist.org/packages/spotonlive/sl-assertions) [![Total Downloads](https://camo.githubusercontent.com/3e4e2b35b2a76cf1417e5019a3c816158357007e9148c788a742e4eb1ae19661/68747470733a2f2f706f7365722e707567782e6f72672f73706f746f6e6c6976652f736c2d617373657274696f6e732f646f776e6c6f616473)](https://packagist.org/packages/spotonlive/sl-assertions) [![Latest Unstable Version](https://camo.githubusercontent.com/3ae5eefee9584227e12815be978d0d9310390531d5f0b2f74500948940c5cc27/68747470733a2f2f706f7365722e707567782e6f72672f73706f746f6e6c6976652f736c2d617373657274696f6e732f762f756e737461626c65)](https://packagist.org/packages/spotonlive/sl-assertions) [![License](https://camo.githubusercontent.com/9247e11e995c565a0fd3fa464c5fb5145f333149b051579c042c14f95a3eb7be/68747470733a2f2f706f7365722e707567782e6f72672f73706f746f6e6c6976652f736c2d617373657274696f6e732f6c6963656e7365)](https://packagist.org/packages/spotonlive/sl-assertions) [![Code Climate](https://camo.githubusercontent.com/b71d356f1dbbdebee5dca67fa3a72985294a273b15f26400c1edf2cd181e98c2/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f73706f746f6e6c6976652f736c2d617373657274696f6e732f6261646765732f6770612e737667)](https://codeclimate.com/github/spotonlive/sl-assertions) [![Test Coverage](https://camo.githubusercontent.com/3677f15bccc93b9efa6ed6b54dfeede1c6dde11c3d9453e12466c12ed91dd49c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f73706f746f6e6c6976652f736c2d617373657274696f6e732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/spotonlive/sl-assertions/coverage)

**THIS PACKAGE IS UNDER DEVELOPMENT**

Configuration
-------------

[](#configuration)

### Installation

[](#installation)

Run `$ composer require spotonlive/sl-assertions`

`config/app.php`*Insert the provider and helper alias into your application configuration*

```
    'providers' => [
        \SpotOnLive\Assertions\Providers\Services\AssertionServiceProvider::class,
        \SpotOnLive\Assertions\Providers\Helpers\AssertionHelperProvider::class,
    ]

    'aliases' => [
        'AssertionHelper' => \SpotOnLive\Assertions\Facades\Helpers\AssertionHelperFacade::class,
    ]
```

### Configuration

[](#configuration-1)

run `$ php artisan vendor:publish` to create the configuration file. A configuration file is now available in `config/assertions.php`.

Assertions
----------

[](#assertions)

To create new examples create a new assertion file implementing the assertion interface. For example:

`EditAssertion.php`

```
