<commit_before><?php

namespace AvoRed\Contact\Http\Controllers;

use AvoRed\Contact\Http\Requests\ContactRequest;
use AvoRed\Framework\Models\Database\Configuration;
use App\Http\Controllers\Controller;
use AvoRed\Contact\Mails\ContactMail;
use AvoRed\Contact\Mails\ContactMailRequest;
use Illuminate\Support\Facades\Mail;

class ContactController extends Controller
{
    public function index() {
        return view('avored-contact::contact.index');
    }

    public function send(ContactRequest $request) {

        $adminEmail = Configuration::getConfiguration('general_administrator_email');

        // Sent an EMail to AvoRed Administrator
        Mail::to($adminEmail)->send(new ContactMailRequest($request));

        // Sent an EMail to AvoRed Administrator
        Mail::to($request->get('email'))->send(new ContactMail());


        return redirect()->route('contact.index')->with('successNotification', 'Your Request has been sent!');
    }
}<commit_msg>using configuration into an Contact Us Module<commit_after><?php

namespace AvoRed\Contact\Http\Controllers;

use AvoRed\Contact\Http\Requests\ContactRequest;
use App\Http\Controllers\Controller;
use AvoRed\Contact\Mails\ContactMail;
use AvoRed\Contact\Mails\ContactMailRequest;
use Illuminate\Support\Facades\Mail;
use AvoRed\Framework\Models\Contracts\ConfigurationInterface;

class ContactController extends Controller
{

    /**
     *
     * @var \AvoRed\Framework\Models\Repository\ConfigurationRepository
     */
    protected $repository;

    public function __construct(ConfigurationInterface $repository)
    {
        $this->repository = $repository;
    }

    public function index() {
        return view('avored-contact::contact.index');
    }

    public function send(ContactRequest $request) {

        $adminEmail = $this->repository->getValueByKey('general_administrator_email');

        // Sent an Email to AvoRed Administrator
        Mail::to($adminEmail)->send(new ContactMailRequest($request));

        // Sent an Email to AvoRed Requested User
        Mail::to($request->get('email'))->send(new ContactMail());


        return redirect()->route('contact.index')->with('successNotification', 'Your Request has been sent!');
    }
}
{'fraction_non_alphanumeric': 0.11973094170403588, 'fraction_numerical': 0.0, 'mean_word_length': 4.128735632183908, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2014734', 'n_tokens_mistral': 610, 'n_tokens_neox': 598, 'n_words': 123}