clevyr/laravel-simple-feedback-form

v0.3.0 2023-09-13 20:40 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Requirements

  • Laravel 9+
  • Vue3

Installation

You can install the package via composer:

composer require clevyr/laravel-simple-feedback-form

You can publish the config file with:

php artisan vendor:publish --tag="laravel-simple-feedback-form-config"

You can publish the Feedback vue file with:

php artisan vendor:publish --provider="Clevyr\FeedbackForm\FeedbackFormServiceProvider"

This is an example of the contents of the published config file:

return [
  'email' => 'test@email.com',
];

Your .env file must contain:

FEEDBACK_EMAIL=

Example

<template>
    <feedback-form
        name="Foo Bar"
        email="foo@bar.com"
        form-title="Some Foo Title"
        button-label="Feedback?"
        success-message="Your feedback\nwas sent!"
        submit-button-label="Submit"
    />
</template>

// Options API
<script>
import FeedbackForm from '@/Components/FeedbackForm.vue';

export default {
    components: {
        FeedbackForm,
    },
};
</script>

// Composition API
<script setup>
import FeedbackForm from '@/Components/FeedbackForm.vue';
</script>

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.