alamindev27/contactform
最新稳定版本:1.1.0
Composer 安装命令:
composer require alamindev27/contactform
包简介
Laravel contact form package
README 文档
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
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-16