Skip to content

ikoncept/fabriq-contact-form

Repository files navigation

🇺🇦

Basic contact message used for public facing contact forms

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

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require ikoncept/fabriq-contact-form

You can publish the config file with:

php artisan vendor:publish --tag="fabriq-contact-form-config"

This is the contents of the published config file:

return [
    'recipients' => [
        '[email protected]'
    ],

    'bcc_recipients' => ['[email protected]'],

    'include_app_name' => true,

    'subject' => 'Nytt meddelande från hemsidan',

    'mail_view' => 'fabriq-contact-form::emails.contact_plain',

    'mailable' => \Ikoncept\FabriqContactForm\Mail\ContactMessage::class,

    'form_request_class' => \Ikoncept\FabriqContactForm\Http\Requests\ContactMessageRequest::class,

    'validation_rules' => [
        'name' => 'required|max:125',
        'email' => 'required|max:125',
        'phone' => 'max:30',
        'message' => 'required|max:3000'
    ]
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="fabriq-contact-form-views"

Testing

composer test

Credits

License

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