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.
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.
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'
]
];
php artisan vendor:publish --tag laravel-mail
Simply set the routes : You can get the route list using below command
php artisan route:list
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please acknowledge if you found any vulnerability using this email : epmadushanka@gmail.com
The MIT License (MIT). Please see License File for more information.