Full Contact-Us functionality for your website
This package provide full contact us functionality for your web site with modern front-end scaffolding. you have freedom to modify these front-end templates as you wish.
Work flow
1). User make a inquery using contact-us page.
2). Successfully uploaded inquery is saved in db and forwaded to admins using mail settings.
3). Admin make a reply.
4). Successfully uploaded reply is saved in db and forwared to the user and admins.
Screen shots
Installation
You can install the package via composer:
composer lakm/contact
Then run this artisan command: This will generate all scaffolding
php artisan lakm:InitContactUs
Routes must be register in one of the service provider class(AppServiceProvider)
ContactUs::routes();
This is the contents of the published config file : This allow you to set configurations according to your expectations.
return [
// include role names to send the email
'roles' => ['admin', 'super_admin'],
// you can change email contain column below
'email_column' => 'email',
// you can change name contain column below
'name_column' => 'name',
/*
include relationship name
to obtain roles if roles are
in seperate table other than user
*/
'relationship' => 'roles',
// you can change role table column name below
'role_column_name' => 'name',
/* define list of emails if
need to send particular users
*/
'users' => [
//'exampl@text.com' => 'name'
]
];
Change mail template
php artisan vendor:publish --tag laravel-mail
Usage
Simply set the routes : You can get the route list using below command
php artisan route:list
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please acknowledge if you found any vulnerability using this email : epmadushanka@gmail.com
Credits
License
The MIT License (MIT). Please see License File for more information.