PHPackages                             multek/laravel-feedback - 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. multek/laravel-feedback

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

multek/laravel-feedback
=======================

Headless, customizable user feedback collection for Laravel with flexible metadata

v1.0.0(3mo ago)018MITPHPPHP ^8.2

Since Apr 1Pushed 3mo agoCompare

[ Source](https://github.com/Multek-Company/laravel-feedback)[ Packagist](https://packagist.org/packages/multek/laravel-feedback)[ RSS](/packages/multek-laravel-feedback/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

Laravel Feedback
================

[](#laravel-feedback)

A headless, customizable user feedback collection package for Laravel with a flexible metadata JSON column.

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

[](#installation)

```
composer require multek/laravel-feedback
```

Publish the config and migration:

```
php artisan vendor:publish --tag=feedback-config
php artisan vendor:publish --tag=feedback-migrations
php artisan migrate
```

Usage
-----

[](#usage)

### Via Facade

[](#via-facade)

```
use Multek\LaravelFeedback\Facades\Feedback;

// Create feedback
$feedback = Feedback::create([
    'type' => 'bug',
    'content' => 'The button does not work',
    'user_id' => auth()->id(),
    'metadata' => [
        'browser' => 'Chrome 120',
        'page_url' => 'https://app.com/dashboard',
    ],
]);

// Query feedback
$bugs = Feedback::ofType('bug')->get();
$userFeedback = Feedback::forUser($user)->get();
$recent = Feedback::query()->recent(7)->get();
```

### Via HasFeedback Trait

[](#via-hasfeedback-trait)

Add the trait to your User model:

```
use Multek\LaravelFeedback\Traits\HasFeedback;

class User extends Authenticatable
{
    use HasFeedback;
}
```

Then use it:

```
$user->submitFeedback([
    'type' => 'feature',
    'content' => 'Please add dark mode',
    'metadata' => ['priority' => 'high'],
]);

$user->feedbacks; // Collection of user's feedback
```

### Via API (Optional)

[](#via-api-optional)

Enable routes in `config/feedback.php`:

```
'route' => [
    'enabled' => true,
    'prefix' => 'api/feedback',
    'middleware' => ['api', 'auth:sanctum'],
],
```

Endpoints:

- `POST /api/feedback` — Submit feedback
- `GET /api/feedback` — List feedback (supports `?type=` filter, paginated)

### Events

[](#events)

`FeedbackReceived` is dispatched on every feedback creation:

```
use Multek\LaravelFeedback\Events\FeedbackReceived;

class SendSlackNotification
{
    public function handle(FeedbackReceived $event): void
    {
        // $event->feedback
    }
}
```

### Metadata Validation

[](#metadata-validation)

Optionally enforce metadata structure in `config/feedback.php`:

```
'metadata' => [
    'validation' => [
        'browser' => 'required|string',
        'page_url' => 'sometimes|url',
    ],
],
```

Configuration
-------------

[](#configuration)

KeyDefaultDescription`user_model``App\Models\User::class`User model class`table_name``feedbacks`Database table name`route.enabled``false`Enable API routes`route.prefix``api/feedback`Route prefix`route.middleware``['api', 'auth:sanctum']`Route middleware`metadata.validation``[]`Metadata validation rulesLicense
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance82

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8976719?v=4)[rodrigocoliveira](/maintainers/rodrigocoliveira)[@rodrigocoliveira](https://github.com/rodrigocoliveira)

---

Top Contributors

[![rodrigocoliveira](https://avatars.githubusercontent.com/u/8976719?v=4)](https://github.com/rodrigocoliveira "rodrigocoliveira (3 commits)")

---

Tags

laravelmetadatafeedbackuser-feedback

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/multek-laravel-feedback/health.svg)

```
[![Health](https://phpackages.com/badges/multek-laravel-feedback/health.svg)](https://phpackages.com/packages/multek-laravel-feedback)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M183](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k78](/packages/moonshine-moonshine)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M275](/packages/illuminate-pipeline)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
