https://github.com/netcore/module-contact
Module for more simple contact page management
https://github.com/netcore/module-contact
Last synced: 2 months ago
JSON representation
Module for more simple contact page management
- Host: GitHub
- URL: https://github.com/netcore/module-contact
- Owner: netcore
- License: mit
- Created: 2017-10-06T11:05:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T05:32:16.000Z (almost 8 years ago)
- Last Synced: 2025-07-12T13:43:04.492Z (11 months ago)
- Language: PHP
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Module for more simple contact page management
Main idea of this module is to provide easy contact page setting management, creating map with location and make contact form.
## Pre-installation
This package is part of Netcore CMS ecosystem and is only functional in a project that has following packages installed:
https://github.com/netcore/netcore
https://github.com/netcore/module-admin
https://github.com/netcore/module-form (Only if you will use contact form)
https://github.com/nWidart/laravel-modules
## Installation
```composer require netcore/module-contact```
Publish config, assets, migrations. Migrate and seed:
```
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.
## Usage
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`
You get `contact()` helper. With the helper you can access all features from contact module.
## Examples
To return all data necessary for map:
```contact()->map()```
To return content text:
```contact()->content()```
To return contact settings:
```
contact()->item('phone')
contact()->item('workdays')
contact()->item('location')
contact()->item('contact-email')
contact()->item('contact-form')
```