承接 php-nl/laravel-payload-editor 相关项目开发

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

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

php-nl/laravel-payload-editor

最新稳定版本:v1.0.2

Composer 安装命令:

composer require php-nl/laravel-payload-editor

包简介

Laravel Payload Editor

README 文档

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Every Laravel developer has been there: A queued job fails because of a silly typo in the payload (like a misspelled email address or an expired third-party ID). You can view the exception and the failed payload in Horizon, but you can only hit "Retry". If the payload is wrong, retrying won't help.

Laravel Payload Editor solves this by providing a beautiful UI to unserialize the failed job, safely edit the primitive properties and Eloquent Model Identifiers, and requeue the job with the updated payload.

Features

  • Safe Editing: Unserializes PHP queue objects, reads their properties via Reflection, and ensures type-safety (integers remain integers, booleans remain booleans).
  • Eloquent Support: Safely edit the id of an Illuminate\Contracts\Database\ModelIdentifier inside the job so you can point the job to the correct database record without manual DB queries.
  • Beautiful UI: Built with Livewire 3 and Tailwind CSS, inspired by Laravel Horizon and Pulse.
  • Horizon & Database Supported: Works out of the box with the default Laravel failed_jobs database connection.

Installation

You can install the package via composer:

composer require php-nl/laravel-payload-editor

Next, publish the configuration file (optional):

php artisan vendor:publish --tag="laravel-payload-editor-config"

Usage

Simply visit /laravel-payload-editor in your local development environment to access the dashboard.

Security in Production

By default, the dashboard is only accessible in the local environment. For production usage, you must define the viewLaravelPayloadEditor gate in your App\Providers\AppServiceProvider or AuthServiceProvider.

use Illuminate\Support\Facades\Gate;

/**
 * Register any authentication / authorization services.
 */
public function boot(): void
{
    Gate::define('viewLaravelPayloadEditor', function ($user) {
        return in_array($user->email, [
            'admin@yourdomain.com',
        ]);
    });
}

Testing

composer test

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固