Search by

artisan-toolbox / mosaicast

allanivp

Mosaicast is a Laravel event delivery package that intelligently routes events through the channel best suited to the current context.

Package info

github.com/artisan-toolbox/mosaicast

pkg:composer/artisan-toolbox/mosaicast

Fund package maintenance!

artisan-toolbox

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-16 00:10 UTC

This package is auto-updated.

Last update: 2026-09-16 00:12:42 UTC


README

Mosaicast

Packagist PHP from Packagist Tests

Laravel event delivery through Inertia props or private session broadcasting.

Installation

You can install the package via Composer:

composer require artisan-toolbox/mosaicast

Requires PHP 8.5 and Laravel 13.

Usage

Dispatch an event during a request:

use ArtisanToolbox\Mosaicast\Facades\Mosaicast;

Mosaicast::dispatch('orders.updated', [
    'orderId' => $order->id,
]);

An Inertia response that resolves the mosaicast shared prop carries the event in mosaicast.events. Other responses use the current session's private broadcast channel. See the complete documentation for jobs, event objects, channel authorization, and the Vue client.

Resources