Web
Laravel
Add a feature request board to your Laravel app. One package, one env var, one Blade tag.
Needs PHP 8.2 or later and Laravel 10, 11, 12 or 13. No JavaScript build step and no Tailwind needed.
Install
Add the package
composer require fewchurs/laravelPublish the config
php artisan fewchurs:installAdd your API key
Use the key from your dashboard. It goes in
.env, never in your code..envFEWCHURS_API_KEY=fr_live_xxx
Show the board
That's already done: the package adds a ready-made page at /feedback. Open it and you'll see your board with Top and New tabs, voting, comments and a form for new requests.
To put the board inside one of your own pages, add the Blade tag anywhere:
<x-fewchurs::board />It's rendered on your server, so voting and commenting work even with JavaScript turned off. If your app uses Livewire, there's a reactive version too:
<livewire:fewchurs-board />Votes count the moment someone clicks, and save in the background. If the API can't be reached, the board shows a short message with a "Try again" button inside the board, and the rest of your page keeps working.
Add lazy to the Livewire board to show a loading shimmer until it's ready:
<livewire:fewchurs-board lazy />As a sheet
Put the board behind a floating button instead of on the page. Add it once, for example to your main layout, and it shows on every page:
<x-fewchurs::sheet /> {{-- slides in from the right --}}<x-fewchurs::sheet side="left" /><x-fewchurs::sheet side="bottom" />The sheet opens on your list of requests. A floating New request button switches it to the form and Back returns to the list.
Change the button text with label:
<x-fewchurs::sheet label="Suggest a feature" />Or hide the floating button and open the sheet from any element of your own with data-fewchurs-open:
<x-fewchurs::sheet :trigger="false" /><button data-fewchurs-open>Feedback</button>The board loads only the first time the sheet opens, so pages where nobody opens it make no API calls. On phones it fills the screen, and without JavaScript the button is a link to /feedback.
/feedback in a frame, so it needs that route. If your app sends X-Frame-Options: DENY or a CSP frame-ancestors 'none', allow your own site to frame /feedback.Use your own layout
To render /feedback inside your app's layout, with your header and footer, set these in config/fewchurs.php:
'board' => [ 'layout' => 'layouts.app', // your layout view 'section' => 'content', // the @yield it renders into],The same file sets the URL prefix, which tabs show, how many requests per page, whether comments and following are open, whether the email field is hidden, optional or required, and whether people must be signed in to post.
Customize
Change the color and corner radius right on the tag:
<x-fewchurs::board :theme="['primary' => '#ED5F18', 'radius' => '12px']" />Add your own heading above the board with a slot:
<x-fewchurs::board> <x-slot:header> <h1>Help shape {{ config('app.name') }}</h1> </x-slot:header></x-fewchurs::board>To change the markup or the wording, publish the views and translations. They're small Blade and lang files, made to be edited:
php artisan vendor:publish --tag=fewchurs-viewsphp artisan vendor:publish --tag=fewchurs-langBuild your own UI
Prefer your own design? Use the PHP client and render it however you like. Every call throws a typed exception on failure, with a userMessage() that's safe to show.
use Fewchurs\Laravel\Facades\Fewchurs;$page = Fewchurs::features()->top(limit: 20);$feature = Fewchurs::features()->submit( title: 'Add dark mode', description: 'Would love a dark theme.', email: auth()->user()?->email,);Fewchurs::features()->vote($feature->id);Fewchurs::comments()->create($feature->id, text: '+1');The package README covers everything else: visitor identity, more than one board, events, and Fewchurs::fake() for your tests.
Check your setup
One command tells you whether your key works and the board can be reached:
php artisan fewchurs:checkAfter a deploy, php artisan fewchurs:warm loads the board settings ahead of the first visitor.
Localhost and going live
Your API key only works from the domain you add to your app. Laravel handles this for you. It sends the domain each page is opened on with every request, so the key works on your live domain whatever APP_URL says. This needs version 1.8.0 or later.
While you build on localhost
You only need your API key. There is nothing to add in the dashboard yet.
APP_URL=http://localhost:8000FEWCHURS_API_KEY=fr_live_xxxlocalhost and 127.0.0.1 always work. While APP_DEBUG=true the board shows a small note to remind you to add your domain before you go live. Visitors never see this note.
When you go live
Open your app in the Fewchurs dashboard.
Under Where does your app run? pick Web.
Add just the domain in Website domain, like
yourcompany.com. Leave outhttps://.Click Save changes. A new domain can take up to a minute to work.
Set these in the
.envon your live server:.envAPP_URL=https://yourcompany.comAPP_DEBUG=falseFEWCHURS_API_KEY=fr_live_xxxThe board doesn't use
APP_URL, butphp artisan fewchurs:checkdoes. A command has no visitor, so it sends the domain inAPP_URLinstead.If you cache your config, refresh it:
php artisan config:cacheCheck it on your live server:
php artisan fewchurs:checkYou should see "Board reachable".
Test your domain before you go live
You can check your domain from localhost:
Add this line to your local
.env:.envFEWCHURS_APP_ID=yourcompany.comRun these:
php artisan config:clearphp artisan fewchurs:check
If you see "Board reachable" your domain is set up. Remove the line when you're done. If you only just added the domain and it's refused, wait a minute and run the check again.
Which addresses work
If you add yourcompany.com:
| Page opened on | Result |
|---|---|
http://localhost:8000 | Works |
https://yourcompany.com | Works |
https://www.yourcompany.com | Works |
https://app.yourcompany.com | Works |
https://othercompany.com | Refused |
Subdomains of the domain you add work on their own. It doesn't work the other way: if you add app.yourcompany.com then yourcompany.com is refused. Add the main domain if you use more than one.
When you need FEWCHURS_APP_ID
Most sites don't need it. It sends one fixed ID instead of the domain each page is opened on, for every page and for fewchurs:check. Use it when your site runs on an address you haven't added, for example a staging site on your host's own domain:
FEWCHURS_APP_ID=yourcompany.comIf you have more than one board you can give each one its own ID in config/fewchurs.php:
'apps' => [ 'docs' => [ 'api_key' => env('FEWCHURS_DOCS_KEY'), 'app_id' => 'docs.yourcompany.com', ],],If something goes wrong
| What you see | What it means | What to do |
|---|---|---|
| This API key is not set up for yourcompany.com. Add it to your app in the Fewchurs dashboard. | This domain isn't added to the app for this key | Add the domain in the dashboard. The message names the domain the page was opened on. In fewchurs:check it comes from APP_URL, or from FEWCHURS_APP_ID if you set it. |
| Invalid API key. Check the key in your Fewchurs dashboard. | The key is wrong or no longer active | Copy the key from the dashboard into .env. |
| Couldn't reach the feedback service. | Your server can't reach Fewchurs | Check your server's internet connection. |
| Something went wrong. Try again. | Any other error | Set APP_DEBUG=true on a test site to see the real cause, and check your log file. |
Visitors see these messages on your live site too. Keep APP_DEBUG=false there, as Laravel recommends.
After you change .env run php artisan config:clear, or php artisan config:cache if you cache your config. The board keeps a recent copy of the list, so it can show old requests for a while after a key is refused. Run php artisan cache:clear to see the current state. php artisan fewchurs:check always checks live.
What your plan changes
Your plan is applied on our servers, so you never need to change code or update the package when it changes. Changes show up within 5 minutes.
| Free | Starter | Pro | |
|---|---|---|---|
| Requests the board lists | First 5 | First 200 | All |
| "Powered by Fewchurs" line | Shown | Hidden | Hidden |
Newer requests are still saved and show in your dashboard. Once your app is past its limit, a new request is accepted but doesn't appear in the board's list. See pricing.
About the API key
Here the key stays on your server: the browser only ever talks to your own Laravel routes. The package keeps it out of the page and out of your logs. Still, keep it in .env and out of git.
APP_KEY before it's sent. That is how votes are remembered without an account. Read more in How it works.