Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-feedback maintained by j87nl

Description
A feedback and bug report button for Laravel Inertia/Vue apps, with an annotated screenshot, recent JavaScript errors and a mail to the team
Author
Johan
Last update
2026/12/02 13:08 (dev-main)
License
Downloads
1

Comments
comments powered by Disqus

Laravel Feedback

A feedback and bug report button for Laravel apps with Inertia and Vue 3.

A logged-in user clicks the round button in the corner. The package takes a screenshot of the visible page, opens a dialog where the user can black out or highlight parts of it, and sends the message together with the page URL, the viewport, the browser and the last JavaScript errors. The report is stored in feedback_reports and a queued job mails it to the team with the screenshot attached.

  • Backend: route, rate limiter, form (TranquilTools FormBuilder), model, migration, mailable, translations (nl, en, de).
  • Frontend: FeedbackButton and a JavaScript error buffer, with their own minimal UI on Tailwind v4 and shadcn tokens.

Requirements

  • PHP 8.4, Laravel 12 or 13, inertiajs/inertia-laravel 2 or 3
  • A users table with an unsigned big integer id (the published migration uses foreignId('user_id')->constrained())
  • tranquil-tools/laravel-form-builder and tranquil-tools/laravel-vue-form-builder (the @form-builder alias)
  • npm: vue, @inertiajs/vue3, reka-ui, @lucide/vue and modern-screenshot (see the peerDependencies in package.json)
  • Tailwind CSS v4 with the shadcn colour tokens (bg-background, text-muted-foreground, bg-primary, ...)

Quick start

composer require j87nl/laravel-feedback
php artisan vendor:publish --tag=feedback-migrations
php artisan migrate
npm install --save-exact modern-screenshot@4.7.0
// app/Http/Middleware/HandleInertiaRequests.php
use J87NL\Feedback\Feedback;

return [
    ...parent::share($request),
    ...Feedback::props($request),
];
// resources/js/app.ts
import { initializeFeedbackErrorBuffer } from '@feedback/errorBuffer';

initializeFeedbackErrorBuffer();
<!-- your authenticated layout -->
<script setup lang="ts">
import FeedbackButton from '@feedback/components/FeedbackButton.vue';
</script>

<template>
    <slot />
    <FeedbackButton />
</template>
FEEDBACK_MAIL_TO=support@example.com,dev@example.com

Reports and screenshots are kept forever unless you set FEEDBACK_RETENTION_DAYS and schedule model:prune for J87NL\Feedback\Models\FeedbackReport, see retention.

The vite alias, tsconfig path and Tailwind @source line are in the installation docs.

Documentation

See docs/index.md.

Testing

composer test
composer analyse
composer format

License

MIT, see LICENSE.