For the complete documentation index, see llms.txt. This page is also available as Markdown.

Process Finished Event

Larupload dispatches this event after an upload process has been completed successfully. The event is fired in both ORM and standalone modes.

Use this event to execute follow-up actions, such as:

  • Sending notifications

  • Dispatching background jobs

  • Synchronizing data with external services

  • Updating related records

Event Payload

The event exposes the following properties:

Property
Type

id

int|string

model

string

Create a Listener

php artisan make:listener LaruploadProcessFinishedListener

Handle the Event

<?php

namespace App\Listeners;

use Vendor\Package\Events\LaruploadProcessFinished;


class LaruploadProcessFinishedListener
{
    public function handle(LaruploadProcessFinished $event): void
    {
        info('Larupload process finished', [
            'id' => $event->id,
            'model' => $event->model,
        ]);
    }
}

Laravel will automatically discover and register the listener as long as it is placed in your application's Listeners directory and the event is type-hinted in the handle method.

Manual Registration (Optional)

If you have disabled event discovery, you may register the listener manually in your AppServiceProvider:


Last updated