定制 christhompsontldr/laravel-restricted 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

christhompsontldr/laravel-restricted

Composer 安装命令:

composer create-project christhompsontldr/laravel-restricted

包简介

Allow users to enter a restricted mode which provides limited functionality.

README 文档

README

Laravel Restricted is a simple Laravel package that provides a system for authenticated users to place their access into a restricted mode.

This can be useful for an application that needs a "kiosk" mode.

Laravel Restricted assumes that your Laravel application has a Bootstrap 4 type layout located at resources/views/layouts/app.blade.php. This is the default layout that comes preinstalled with laravel/ui.

Middleware

By default, the Restricted middleware is applied to the web middleware group. Once an authenticated user has entered restricted mode, any route that does not have the can:unrestricted middleware/gate becomes protected and cannot be accessed.

Gates

can:restricted

This can be applied to any routes that you would like to be restricted. If your application uses the default web middleware group, you will likely never need this gate.

can:unrestricted

This can be applied to any routes that you would like to be unrestricted. An example would be the kiosk's customer survey form.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固