PHP code example of ikoncept / fabriq-contact-form

1. Go to this page and download the library: Download ikoncept/fabriq-contact-form library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ikoncept / fabriq-contact-form example snippets



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' => '
bash
php artisan vendor:publish --tag="fabriq-contact-form-config"
bash
php artisan vendor:publish --tag="fabriq-contact-form-views"