karabinse/contact-form

Basic contact message used for public facing contact forms

Maintainers

Package info

github.com/KarabinSE/contact-form

pkg:composer/karabinse/contact-form

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.3.0 2026-03-09 12:30 UTC

This package is auto-updated.

Last update: 2026-03-09 12:30:58 UTC


README

🇺🇦

Basic contact message used for public facing contact forms

Latest Version on Packagist GitHub Tests 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 karabinse/contact-form

You can publish the config file with:

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

Publish the migration files with:

php artisan vendor:publish --tag="contact-form-migrations"

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' => 'contact-form::emails.contact_plain',

    'mailable' => \KarabinSE\ContactForm\Mail\ContactMessage::class,

    'form_request_class' => \KarabinSE\ContactForm\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="contact-form-views"

Testing

composer test

Credits

License

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