ikoncept / fabriq-contact-form
Basic contact message used for public facing contact forms
1.2.0
2024-04-10 10:30 UTC
Requires
- php: ^8.0
- illuminate/contracts: ^9.0|^10.0|^11.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.8
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
README
🇺🇦
Basic contact message used for public facing contact forms
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.