clevyr / laravel-feedback-form
A simple user feedback form for Laravel.
Installs: 2 339
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=5.4.0
Requires (Dev)
- laravel/framework: >=5.0
This package is auto-updated.
Last update: 2023-07-25 23:40:04 UTC
README
This is a simple form to gather feedback from the users of your application.
There's no magic here. This library only publishes the files needed to handle this workflow, and adds it into your existing Laravel application and build process. That makes it 100% customizable.
Requirements:
- Bootstrap
- Laravel 5+
Installation
composer require clevyr/laravel-feedback-form # Publish the added files php artisan vendor:publish --provider="Clevyr\FeedbackForm\FeedbackServiceProvider"
Environment Variables
This app depends on environment variables:
Required:
FEEDBACK_EMAIL=user@example.com # the recipient of the feedback email
Optional:
FEEDBACK_ENABLED=true # Whether you want to show the feedback form
Usage
Include this Vue directive anywhere in your blade/vue templates:
<feedback-form />
You can conditionally show the form in blade templates like this:
@if (config('feedback.enabled'))
<feedback-form />
@endif
Optional Params
You can pre-populate the name and email fields on the form using the name
and
email
props.
<feedback-form
name="{{ someName }}"
email="{{ someEmail }}"
/>
License
MIT