Looking to hire Laravel developers? Try LaraJobs

laravel-feedback-api maintained by hareku

Description
Provide feedback api for laravel.
Author
Last update
2017/05/31 12:15 (dev-develop)
License
Links
Downloads
62
Tags

Comments
comments powered by Disqus

Laravel Feedback API

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)