承接 ageekdev/dev-login 相关项目开发

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

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

ageekdev/dev-login

最新稳定版本:v3.1.0

Composer 安装命令:

composer require ageekdev/dev-login

包简介

Developer Login for Laravel

README 文档

README

Latest Version on Packagist Laravel 10.x Laravel 11.x Laravel 12.x GitHub Tests Action Status Total Downloads

This package allows you to login the developer associate actions (e.g.log views).

dev login screenshot

Installation

You can install this package via composer using this command:

composer require ageekdev/dev-login

The package will automatically register itself.

After installing Dev Login, you may publish its assets using the dev:install Artisan command:

php artisan dev:install

Setup developer account

Setup new dev user account.

php artisan dev:user

USAGE

Dev Login default login URI is the /dev/login.

UseDevLoginGuard Middleware

Laravel official packages uses $request->user() to get the user in gate. The default guard is user guard. So You can use UseDevLoginGuard middleware to override this behaviour.

Telescope

You must replace Authorize with UseDevLoginGuard middleware applied to Telescope routes in telescope.middleware config value.

config/telescope.php

<?php - use Laravel\Telescope\Http\Middleware\Authorize; + use AgeekDev\DevLogin\Http\Middleware\UseDevLoginGuard; use Laravel\Telescope\Watchers; ... 'middleware' => [ 'web', - Authorize::class, + UseDevLoginGuard::class, ], ...

Vapor UI

You must replace EnsureUserIsAuthorized with UseDevLoginGuard middleware applied to Vapor routes in vapor-ui.middleware config value.

config/vapor-ui.php

<?php - use Laravel\VaporUi\Http\Middleware\EnsureUserIsAuthorized; + use AgeekDev\DevLogin\Http\Middleware\UseDevLoginGuard; use Laravel\Telescope\Watchers; ... 'middleware' => [ 'web', - EnsureUserIsAuthorized::class, + UseDevLoginGuard::class, ], ...

Testing

You can run the tests with:

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

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