PHP code example of despark / igni-contact-us

1. Go to this page and download the library: Download despark/igni-contact-us 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/ */

    

despark / igni-contact-us example snippets


$providers = [
    ...
    Despark\Cms\ContactUs\Providers\IgniContactUsServiceProvider::class,
]

return [
    'google_api_key' => env('GOOGLE_MAPS_API_KEY', null),
    // Send an email to the first email address in contacts table when a new message is submitted. true||false||null
    'recieve_email_notifications' => true,
    'mail_receiver_name' => 'Example',
    'mail_subject' => 'New message was received',
    'path_to_email_view' => 'emails.newMessage',
];

igniContactForm()

igniContactDetails()

igniContactMap()

igniFullContactPage()
bash
php artisan igni:make:contacts