emad / contact-us-package
This Package use create form contact us with [ blade , migrations , config Email to receive all contact request ] ,when you need receive any date on your admin email from website or system
dev-main
2021-11-03 14:01 UTC
This package is auto-updated.
Last update: 2025-06-29 02:07:39 UTC
README
This Package use create form contact us with [ blade , migrations , config Email to receive all contact request ] ,when you need receive any data on your admin email from website or system
Installation
Using composer to install contact-us-package.
composer require emad/contact-us-package
Configuration
in your config\app.php
add in your providers
'providers' => [ /* * Package Service Providers... */ Emad\ContactUsPackage\ContactServiceProvider::class, ];
Usage
write on your terminal
php artisan vendor:publish
choice --provider="Emad\ContactUsPackage\ContactServiceProvider"
php artisan migrate
Preparing your Email to receive contact request
in your config\contact.php
add email
return [ 'send_email_to' => 'email@example.com' ];
Check
.env
MAIL_MAILER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=465 MAIL_USERNAME=write_user_name MAIL_PASSWORD=write_user_password MAIL_ENCRYPTION=tls MAIL_FROM_NAME="${APP_NAME}"
Write contact on URL
"http://127.0.0.1:8000/contact"
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.