sushi-market/laravel-info 问题修复 & 功能扩展

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

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

sushi-market/laravel-info

Composer 安装命令:

composer require sushi-market/laravel-info

包简介

TODO

关键字:

README 文档

README

A debug info page for Laravel applications — think phpinfo() but for your Laravel stack.

Available at /laravel-info, protected by Basic Auth outside of the local environment.

Installation

composer require sushi-market/laravel-info

The package auto-discovers itself via Laravel's package discovery. No manual provider registration needed.

Built-in sections

Section What it shows
Stack Laravel version, PHP version, SAPI, Octane, Vite
Environment App environment, server IP, client IP
Config Cache driver, queue driver, session driver, mail, timezone, locale, debug mode
Runtime Memory usage, peak memory, request time, OPcache status
Cache Whether packages/services/config/events/routes are cached
Services Database connectivity, Redis connectivity, Horizon status

Auth

In any environment other than local, access is controlled via LARAVEL_INFO_PASSWORD:

Value Behaviour
not set denied
LARAVEL_INFO_PASSWORD=false open, no password required
LARAVEL_INFO_PASSWORD=secret Basic Auth with that password

The username is ignored — only the password is checked.

Adding custom sections

Implement the Section interface:

use DF\LaravelInfo\Contracts\Section;

class QueueSection implements Section
{
    public function title(): string
    {
        return 'Queue';
    }

    public function data(): array
    {
        return [
            'Driver'     => config('queue.default'),
            'Failed jobs' => \DB::table('failed_jobs')->count(),
        ];
    }
}

Register it in your AppServiceProvider:

use DF\LaravelInfo\LaravelInfo;

public function boot(): void
{
    app(LaravelInfo::class)->addSection(new QueueSection());
}

The section will appear as a card on the page automatically.

Route

GET /laravel-info

Named route: laravel-info.index

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固