alamindev27 / contactform
Laravel contact form package
Package info
github.com/alamindev27/contactform
Language:Blade
Type:package
pkg:composer/alamindev27/contactform
README
This is a lararavel contact form package. If you Install this package you will get a ready contact form with functional, Good Looking Design, auto mail send to admin via SMTP server.
Features
- Send Mail via SMTP server
- Good looking design with Tailwind css
- Form Validation
- Configurable via
config/contactform.php - Supports Laravel 10, 11, 12
Installation
Install via Packagist: Click Here
OR
Require the package using Composer:
composer require alamindev27/contactform
Publish Config
You can publish the config file to customize Admin Email:
php artisan vendor:publish --provider="Alamindev27\ContactForm\ContactFormServiceProvider" --tag=contactform-config
This will create config/contactform.php.
You can change default Admin Email which called from .env file.
Migrate database Schema
php artisan migrate
You can publish the config file to customize Admin Email:
php artisan vendor:publish --provider="Alamindev27\ContactForm\ContactFormServiceProvider" --tag=contactform-config
You have to add a Variable in .env file:
ADMIN_EMAIL='alamindev27@gmail.com' # It is admin receiver email
Looking to send emails in production? Check out your Email SMTP product!
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=4ab
MAIL_PASSWORD=1*0d3
Then run:
php artisan optimize
You can use on you blade
{{ url('/contact') }}
Finally Testing
http://127.0.0.1:8000/contact
Requirements
PHP 8.1+
Laravel 10, 11, 12
Contributing
Feel free to fork this repository and submit pull requests. Please follow PSR-12 coding standards and write tests for new features.
License
MIT License © MD Al-Amin