hareku/laravel-feedback-api

This package is abandoned and no longer maintained. No replacement package was suggested.

Provide feedback api for laravel.

1.0.3 2017-05-28 13:40 UTC

This package is not auto-updated.

Last update: 2020-11-06 01:34:08 UTC


README

This package provide feedback API to your Laravel project.

Support Laravel 5.4~

Installation

Install with composer.

composer require hareku/laravel-feedback-api

include the service provider within config/app.php.

'providers' => [
    Hareku\LaravelFeedbackAPI\LaravelFeedbackAPIServiceProvider::class,
];

You can customzie.

$ php artisan vendor:publish --provider="Hareku\LaravelFeedbackAPI\LaravelFeedbackAPIServiceProvider"

Setting is completed!

Usage

Route is preset. (post: /feedbacks)

Post with axios (Javascript)

axios.post('feedbacks', {
    'body' => 'This is a feedback body.'
}).then(({ data }) => {
    const feedbackBody = data.feedback.body
    console.log(feedbackBody) // This is a feedback body.
})

License

MIT

Author

hareku (hareku908@gmail.com)