Download the PHP package thienpham/contacts without Composer
On this page you can find all versions of the php package thienpham/contacts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package contacts
Contacts Form for Laravel
Giới thiệu
Đây là gói ứng dụng dành cho Laravel:
- Tạo mẫu form liên hệ nhanh chóng.
- Sử dụng captcha đơn giản cho form liên hệ.
- Gửi thông tin liên hệ tới email admin.
Yêu cầu
Cài đặt
- Bạn sẽ cần Composer để cài đặt gói này, sau đó chạy:
$ composer require thienpham/contacts
- Sau khi cài đặt thành công, sao chép đoạn mã sau vào file
.envđể cấu hình email. - Lưu ý:
- Nhập
MAIL_CONTACT_CAPTCHA=TRUEđể sử dụng Captcha. - Nhập
MAIL_USERNAMEvàMAIL_PASSWORDchính xác để quá trình gửi mail thành công.MAIL_DRIVER=smtp MAIL_HOST=smtp.googlemail.com MAIL_PORT=465 [email protected] MAIL_PASSWORD= MAIL_ENCRYPTION=ssl [email protected] MAIL_FROM_NAME="Demo From Name" [email protected] MAIL_CONTACT_CAPTCHA=TRUE
Thực hiện lệnh
php artisan config:clearđể làm mới cấu hình mail
Sử dụng
- Áp dụng
actionvàmethodsau vàofromliên hệ:action="{{ route('store.thienpham.contact') }}" method="post" - Sử dụng
renderCheckCaptcha(env('MAIL_CONTACT_CAPTCHA'))nếu dùng Captcha
Code mẫu form liên hệ:
- Vào đường dẫn bên dưới để xem code mẫu form liên hệ:
root/vendor/thienpham/contacts/resources/views/contact-form-template.php
Tùy chỉnh giao diện gửi email (Overwrite)
- Chạy lệnh sau để nhân bản giao diện vào
resources/views$ php artisan vendor:publish
- Để tùy chỉnh giao diện email, sửa file
email-templatetheo đường dẫn sau:resources/views/vendor/thienpham-contacts/email-template.blade.php
Hình ảnh

Giấy phép
- Gói thienpham/contacts là phần mềm nguồn mở được cấp phép theo MIT license.
All versions of contacts with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.3
fideloper/proxy Version ^4.0
laravel/framework Version ^5.6.0
laravel/tinker Version ^1.0
fideloper/proxy Version ^4.0
laravel/framework Version ^5.6.0
laravel/tinker Version ^1.0
The package thienpham/contacts contains the following files
Loading the files please wait ...