PHPackages                             digbang/security - 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. [Security](/categories/security)
4. /
5. digbang/security

ActiveLibrary[Security](/categories/security)

digbang/security
================

Security package for Laravel projects in Digbang.

v6.0.3(3y ago)446.9k↓40.6%3MITPHPPHP ^8.0.2

Since Aug 15Pushed 3y ago38 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (92)Used By (0)

Security
========

[](#security)

Security package for new laravel projects.

Usage
-----

[](#usage)

Add the `SecurityServiceProvider` to your `config/app.php` file:

```
'providers' => [
    Digbang\Security\Laravel\SecurityServiceProvider::class,
];
```

To use this package, you need to define a **Context** which you need to secure. URLs inside this **Context** will have access to the `SecurityApi` configured for them. This way, you may have multiple **Contexts** running on a single application.

Add as many contexts as you need in a `ServiceProvider :: boot()` of your own:

```
