technicalsimple / contact
This will send email to admin and save contact query in database.
This package is auto-updated.
Last update: 2025-07-12 13:44:09 UTC
README
A Powerful package for handling contact us . It will send email to admin and save contact query in database in Laravel. Supports Laravel 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.0, 7.0, and 8.0+.
Installation
This package is very easy to set up. There are only couple of steps.
Composer
From your projects root folder in terminal run:
Laravel 5.5 and up use:
composer require technicalsimple/contact
Laravel 5.4 and below use:
composer require technicalsimple/contact 1.0.0
Service Provider
-
Laravel 5.5 and up Uses package auto discovery feature, no need to edit the config/app.php file.
-
Laravel 5.4 and below Add the package to your application service providers in config/app.php file.
'providers' => [ ... /** * Third Party Service Providers... */ \technicalsimple\Contact\ContactServiceProvider::class, ],
Publish All Assets
php artisan vendor:publish --provider="technicalsimple\Contact\ContactServiceProvider"
After publish ContactServiceProvider Goto the app/config/contact.php and change admin email details.
<?php
return [
'admin' => 'Admin', // admin name
'send_email_to' => 'example@gmail.com', //admin email
];
Also Please setup email configuration details in env file.
Migrations
This will create contacts table.
php artisan migrate