Download the PHP package whilesmart/eloquent-feedback without Composer
On this page you can find all versions of the php package whilesmart/eloquent-feedback. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whilesmart/eloquent-feedback
More information about whilesmart/eloquent-feedback
Files in whilesmart/eloquent-feedback
Package eloquent-feedback
Short Description Customer feedback, reviews and testimonials for Laravel: a triage and sentiment layer over eloquent-forms.
License MIT
Informations about the package eloquent-feedback
Eloquent Feedback
Customer feedback, reviews and testimonials for Laravel. A triage and sentiment
layer built on top of whilesmart/eloquent-forms:
your app collects submissions through any feedback form it likes, and this
package turns the ones you care about into owner-scoped feedback with a
lifecycle you can act on.
How it fits together
- Forms collect, feedback interprets. You define feedback forms with
eloquent-forms(a bug report, an NPS prompt, a "leave a testimonial" box). A submission is raw input; a feedback record is a triageable item with a type, a status, a rating and a sentiment. - A form key maps to a feedback type.
config('feedback.forms')maps each form key to the kind of feedback its submissions become. When a mapped form is submitted, a listener creates aFeedbackrecord owned by the form's owner. Unmapped submissions are ignored (a plain contact form stays a submission, not feedback). - Ownership is polymorphic. Feedback belongs to an
ownermorph (a workspace, a product, a page) exactly like the rest of the WhileSmart packages. Access is enforced throughwhilesmart/eloquent-owner-access.
Install
Publish the config to set up your form map:
Endpoints
Owner-scoped (behind route_middleware):
GET /api/feedback— triage list, filter bytype,status,sentiment,is_public,qGET /api/feedback/summary— totals, average rating, NPS, breakdownsGET /api/feedback/{feedback}PATCH /api/feedback/{feedback}— move status, set sentiment/rating, publishDELETE /api/feedback/{feedback}
Public (behind public_middleware):
GET /api/testimonials?owner_type=&owner_id=— feedback the owner marked public
Sentiment
Sentiment is a seam. Out of the box nothing is inferred (NullSentimentAnalyzer).
Bind your own to classify feedback text as it arrives:
Events
FeedbackReceived— a submission became feedback. Bridge to notifications, CRM, Slack.FeedbackStatusChanged— the lifecycle moved. Carries the previous and new status.
Owning feedback
Add the trait to any model that should own feedback:
All versions of eloquent-feedback with dependencies
laravel/framework Version ^12.0
whilesmart/eloquent-forms Version ^0.1
whilesmart/eloquent-owner-access Version ^1.0