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.

v7.5.0(2mo ago)447.9k↓37.5%3MITPHPPHP ^8.0.2CI failing

Since Aug 15Pushed 2mo ago37 watchersCompare

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

READMEChangelog (10)Dependencies (24)Versions (102)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:

```
