PHPackages                             kelude/laravel-forwarder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kelude/laravel-forwarder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kelude/laravel-forwarder
========================

Laravel Forwarder.

014PHPCI passing

Since Jan 2Pushed 4mo agoCompare

[ Source](https://github.com/kelude/laravel-forwarder)[ Packagist](https://packagist.org/packages/kelude/laravel-forwarder)[ RSS](/packages/kelude-laravel-forwarder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Forwarder
=================

[](#laravel-forwarder)

A Laravel package to easily handle incoming Forwarder webhooks.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kelude/laravel-forwarder:dev-main
```

After installing, run the install command to scaffold the necessary files:

```
php artisan forwarder:install
```

This command will:

1. Publish the configuration file to `config/forwarder.php`.
2. Publish the webhook handler action to `app/Actions/Forwarder/HandleWebhook.php`.
3. Publish and register the `ForwarderServiceProvider` in your application.

Usage
-----

[](#usage)

### Handling Webhooks

[](#handling-webhooks)

The package uses an Action class to handle incoming webhooks. After installation, you can find the handler at `app/Actions/Forwarder/HandleWebhook.php`.

You should modify the `handle` method in this class to implement your custom logic (e.g., saving the message to the database, forwarding it to Telegram/Slack, etc.).

```
