selfreliance/feedback

List of feedback for adminamazing

1.0.35 2018-01-22 15:05 UTC

README

feedback - a package that allows you to control letters that have been sent through the contact form

Documentation

Require

How to install

Install via composer

composer require selfreliance/feedback

Publish config, javascript

php artisan vendor:publish --provider=Selfreliance\\feedback\\FeedbackServiceProvider --force

Contact form

Connect script in your blade

<script src="{{ asset('js/core.js') }}"></script>

Create form

Transmit data to url (/contacts or url from config feedback) - method POST:

- name (required),
- email (required),
- subject (required),
- msg (required),
- phone

Settings captcha

Add the service provider to the providers array in config/app.php

'providers' => [
	'Greggilbert\Recaptcha\RecaptchaServiceProvider::class,
];

Add the aliases to the aliases array

'aliases' => [
	'Recaptcha' => Greggilbert\Recaptcha\Facades\Recaptcha::class,
];

Publish config

php artisan vendor:publish --provider=Greggilbert\\Recaptcha\\RecaptchaServiceProvider

In /config/recaptcha.php, enter your reCAPTCHA public and private keys

Connect captcha in your blade

@if(config('feedback.captcha') == true)
{!! \Recaptcha::render() !!}
@endif

Parser messages

Settings

Add the service provider to the providers array in config/app.php

'providers' => [
    Webklex\IMAP\Providers\LaravelServiceProvider::class,
];

Add the aliases to the aliases array

'aliases' => [
    'Client' => Webklex\IMAP\Facades\Client::class
];

Publish

php artisan vendor:publish --provider=Webklex\\IMAP\Providers\\LaravelServiceProvider

Call manually

$messages = EmailParser::getInbox(); // get all messages from mail
EmailParser::parseMessages($messages, false); // parse messages, false (EnableQuotes)
unset($messages); // unset all messages

Artisan command

php artisan email:parser // 'Parse email successfuly'