New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

php-nl/laravel-payload-editor

Laravel Payload Editor
1,560 4
Install
composer require php-nl/laravel-payload-editor
Latest Version:v1.0.2
PHP:^8.3.0
Laravel:11 · 12 · 13
License:MIT
Last Updated:Mar 24, 2026
Links: GitHub  ·  Packagist
Maintainer: SERFF

Laravel Payload Editor & Payload Editor

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
v1.0.2 ^8.3.0 ^11.0|^12.0|^13.0 MIT
v1.0.1 ^8.3.0 ^11.0|^12.0|^13.0 MIT
v1.0.0 ^8.3.0 ^11.0|^12.0|^13.0 MIT