PHPackages                             psecio/propauth-provider - 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. [Templating &amp; Views](/categories/templating)
4. /
5. psecio/propauth-provider

ActiveLibrary[Templating &amp; Views](/categories/templating)

psecio/propauth-provider
========================

A Laravel provider for adding PropAuth checking to Blade templates

0.1(10y ago)014MITPHPPHP &gt;=5.5.0

Since Oct 22Pushed 10y agoCompare

[ Source](https://github.com/psecio/propauth-provider)[ Packagist](https://packagist.org/packages/psecio/propauth-provider)[ Docs](https://github.com/psecio/propauth-provider.git)[ RSS](/packages/psecio-propauth-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Policy Template (Blade) Service Provider for PropAuth
=====================================================

[](#policy-template-blade-service-provider-for-propauth)

This service provider, for Laravel 5+ based applications, introduces the ability to perform [PropAuth](https://github.com/psecio/propauth) evaluation checks on the current user against pre-defined policies.

### Usage

[](#usage)

To use this provider, update your Laravel app's `app.php` configuration's "providers" section to pull in this provider:

```

```

### What else is required

[](#what-else-is-required)

This library requires two things:

- That you have the [PropAuth](https://github.com/psecio/propauth) functionality installed
- That you have policies defined in your application according to this setup: [Security Policy Evaluation in Laravel with PropAuth](http://websec.io/2015/10/07/Security-Policy-Evaluation-Laravel-PropAuth.html)

Essentially, the requirement is that there's another service provider (in the example it's the `PolicyServiceProvider`) that defines your policies in a singleton named "policies" and returns an enforcer object. For example, you could put this in `app/providers/PolicyServiceProvider.php`:

```
