定制 devtoygun/laravel-masterkey 二次开发

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

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

devtoygun/laravel-masterkey

最新稳定版本:v1.0.0

Composer 安装命令:

composer require devtoygun/laravel-masterkey

包简介

A master key package for laravel projects that bypasses session privileges.

README 文档

README

Latest Version on Packagist Total Downloads License

Laravel MasterKey is a lightweight utility designed for developers to maintain emergency access and bypass session-based privilege checks during development or maintenance phases. It provides a seamless way to authenticate as a super-admin using secure headers.

Key Features

  • Header-Based Access: Authenticate instantly using a custom header.
  • Global Gate Bypass: Automatically bypasses all Gate and Policy checks for the master session.
  • Zero Configuration: Works out of the box with Laravel's auto-discovery.
  • Stealth Mode: Minimal footprint in your application's route list or logs.

Installation

You can install the package via composer:

composer require devtoygun/laravel-masterkey

Usage

Add a new key named MASTER_KEY to your project's .ENV file.

The password you set for this key is your MASTER password.

After your project is completed, open any header editor tool and run it with these values:

Name: dev-master
Value: Your MASTER_KEY password in your ENV file.

After submitting the header, auth controls on the project will be bypassed and you will be considered logged in as admin.

!!!Attention!!!

By using this plugin you are assumed to be aware of:

  • This is not a hacking tool or malicious software.
  • This add-on is intended to log in with "developer" authority on the project during long-term technical support after project delivery.
  • The user is responsible for using this plug-in for purposes other than its intended purpose; the plug-in developer cannot be held responsible for any data loss, legal liability or security vulnerabilities that may occur.
  • Anyone using this plug-in must know and accept that this plug-in is publicly available and open source under the MIT license and that anyone can use it and access it by reverse engineering.
  • Since this plugin is not malicious software or a hacking tool, there is no encryption or code obfuscation.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固