ikoncept/fabriq-contact-form

Basic contact message used for public facing contact forms

1.2.0 2024-04-10 10:30 UTC

This package is auto-updated.

Last update: 2024-11-10 11:38:49 UTC


README

🇺🇦

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' => [
        'example@example.com'
    ],

    'bcc_recipients' => ['fopper@ss.com'],

    '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.