2.0.x-dev
2.0.9999999.9999999-dev
The Requires
- php >=7.0.0
- netcore/module-setting ^2.0
by Daniels Grietiņš
Main idea of this module is to provide easy contact page setting management, creating map with location and make contact form., (*1)
This package is part of Netcore CMS ecosystem and is only functional in a project that has following packages installed:, (*2)
https://github.com/netcore/netcore, (*3)
https://github.com/netcore/module-admin, (*4)
https://github.com/netcore/module-form (Only if you will use contact form), (*5)
https://github.com/nWidart/laravel-modules, (*6)
composer require netcore/module-contact
, (*7)
Publish config, assets, migrations. Migrate and seed:, (*8)
php artisan module:publish-config Contact php artisan module:publish Contact php artisan module:publish-migration Contact php artisan migrate php artisan module:seed Contact
You should be good to go., (*9)
After setup new section will appear in your acp. The name of the section will be "Contact"
If your project do not need map or some other settings you can disable them in your configuration file - config/netcore/module-contact.php
, (*10)
You get contact()
helper. With the helper you can access all features from contact module., (*11)
To return all data necessary for map:
contact()->map()
, (*12)
To return content text:, (*13)
contact()->content()
, (*14)
To return contact settings:, (*15)
contact()->item('phone') contact()->item('workdays') contact()->item('location') contact()->item('contact-email') contact()->item('contact-form')