Package Data | |
---|---|
Maintainer Username: | despark |
Maintainer Contact: | ageshev@despark.com (Anton Geshev) |
Package Create Date: | 2017-06-07 |
Package Last Update: | 2018-01-29 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-17 03:01:06 |
Package Statistics | |
---|---|
Total Downloads: | 17 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 8 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This package extends despark/igni-core by adding a fully functional Contacts Page consisting of:
Require using Composer
composer require despark/igni-contact-us
Add the service provider to config/app.php
$providers = [
...
Despark\Cms\ContactUs\Providers\IgniContactUsServiceProvider::class,
]
Run the artisan install command
php artisan igni:make:contacts
A new Contacts Management sidebar will be added to the CMS page
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()
Outputs a contact form with simpl HTML structure
igniContactDetails()
Outputs all the cotact details using simple HTML structure
igniContactMap()
Outputs Google Maps JS map focused on the address you've setup in the contacts
igniFullContactPage()
Output a fully fledged Contact Us page with all contact details, contact form and map