2017 © Pedro Peláez
 

library moat

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

image

tempest-tools/moat

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  • Thursday, March 15, 2018
  • by tempestwf
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Tempest Tools Moat

This package allows you to easily place templates which draw on stored information about the user's request to laravel in order to check if a resource is allowed to be accessed by the current user., (*1)

The package used laravel-doctrine/acl at it’s core, however the functionality that was stored in laravel-doctrine/acl has been replaced due to performance concerns in the base package and errors that package had with phpunit., (*2)

The base package would retrieve and iterate all permissions available to a user on each request, which if used in an application that has a lot of permissions could be quite a drain on resources. I have replaced this with a simple query., (*3)

Examples given in the code are based on using the Tempest Tools Skeleton, so the routing examples may not look exactly as you are used to., (*4)

Please see the wiki for additional documentation., (*5)

Tempest Tools Moat can be seen in action in the Tempest Tools Skeleton: https://github.com/tempestwf/tempest-tools-skeleton, (*6)

Requirements

  • PHP >= 7.1.0
  • laravel/framework = 5.3.*,, (*7)

  • Composer., (*8)

Installation

After installing with composer make sure to add the middleware to your Kernel.php file: \app\Http\Kernel.php, (*9)

  protected $routeMiddleware = [
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'can'        => \Illuminate\Foundation\Http\Middleware\Authorize::class,
    'throttle'   => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    'acl' => \TempestTools\Moat\Http\Middleware\Acl::class
  ];

The Versions

15/03 2018

dev-develop

dev-develop

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

04/11 2017

dev-master

9999999-dev

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

04/11 2017

2.0.0

2.0.0.0

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

04/11 2017

v2.0.0.x-dev

2.0.0.9999999-dev

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

24/08 2017

dev-speed-optimization

dev-speed-optimization

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

09/06 2017

1.0.1

1.0.1.0

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

09/06 2017

v1.0.1.x-dev

1.0.1.9999999-dev

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

07/06 2017

1.0.0

1.0.0.0

Middle ware associated with Laravel Doctrine ACL. This middle ware will check permissions for access to routes, based on the route name and the reqest type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer

07/06 2017

v1.0.0.x-dev

1.0.0.9999999-dev

Middle ware associated with Laravel Doctrine ACL. This middle ware will check permissions for access to routes, based on the route name and the reqest type.

  Sources   Download

MIT

The Requires

 

by William Tempest Wright Ferrer

orm database laravel middleware acl doctrine tempest tools access control layer