pedrazadixon/laravel-simple-permissions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pedrazadixon/laravel-simple-permissions

最新稳定版本:1.0.13

Composer 安装命令:

composer require pedrazadixon/laravel-simple-permissions

包简介

A simple package to manage permissions in Laravel

README 文档

README

Laravel Simple Permissions is a lightweight library designed to simplify permissions management in Laravel projects.

Features

  • Easily integrate permissions into your Laravel application.
  • Assign and validate permissions on users.
  • Supports Laravel's built-in user authentication system.

Requirements

  • PHP >= 7.3
  • Laravel >= 8.0
  • Laravel Breeze (Laravel's authentication features)

Installation

Laravel Simple Permissions works with Laravel's authentication features. Please install this before install Laravel Simple Permissions. You can follow instructions here: https://laravel.com/docs/10.x/starter-kits#laravel-breeze

You can install the package via composer:

composer require pedrazadixon/laravel-simple-permissions

Finish the installation with the following command:

php artisan laravel-simple-permissions:install

Usage

Add permissions middleware to routes, for example:

Route::get('/dashboard', function () {
    return view('dashboard');
})->middleware(['auth', 'verified', 'permissions'])->name('dashboard');

Creating permissions

You can create permissions navigate the following route:

Publish views (optional)

You can publish the views with:

php artisan vendor:publish --tag=laravel-simple-permissions-views

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-05