承接 tempest-tools/moat 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tempest-tools/moat

Composer 安装命令:

composer require 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.

README 文档

README

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.

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.

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.

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.

Please see the wiki for additional documentation.

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

Requirements

  • PHP >= 7.1.0

  • laravel/framework = 5.3.*,

  • Composer.

##Installation

After installing with composer make sure to add the middleware to your Kernel.php file: \app\Http\Kernel.php

  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
  ];

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固