Skip to content

Installation

bash
composer require hexters/feedback-now
php artisan vendor:publish --tag=feedback-now-config

That publishes config/feedback-now.php. Everything has a sensible default — you normally only touch the .env.

Turn it on

Set three values. Because .env differs per environment, FEEDBACK_NOW_TOKEN is also how you keep the button out of production: set it in local and staging, leave it out in prod.

dotenv
FEEDBACK_NOW_PROVIDER=github       # or gitlab
FEEDBACK_NOW_TOKEN=ghp_xxx
FEEDBACK_NOW_REPO=owner/repo        # GitLab: the numeric project id

That is the whole setup. The button now appears on every page in that environment.

No token, no button

The button (and the endpoint) switch on only when a token is present. Without one there is nowhere to send the issue, so nothing renders. That is the safe default for production.

Next

In-app feedback for Laravel. MIT licensed, open source.