Note: This repository contains the core code of a Laravel Package "Contact" that helps to send email to admin and save contact query in database . It is one of my Package Development projects which i have made to practice Laravel's Package Development.
- About the Project
- Getting Started
- Usage
- Roadmap
- Contributing
- Resources
- License
- Contact
- Acknowledgements
- Heartiest Thanks
Having a Contact page can seriously reduce frustration, which is always a good thing. Using a contact form is even better since users will be able to get in touch from within website. That way, when they're done reaching out, they can continue to peruse the site. Contact
is a Laravel Framework's Package which helps to store the user query in the database and inform the admin via mail. In this project, I have practiced how to develop a real-world, Laravel Package.
Goal:
- Build a practical, real-world Laravel Package.
- Create a user friendly Contact Us feature with Mail system,
- Practice Composer's Core Functionality, like upload package on Packagist etc, .
- Practice Composer package Versioning.
Of course, I have achieved most of the goals in this project. Let's Cheers. 😄
Here, the package is stored for future reference. It may also help who wants to build or needs a Laravel Package which sends email to admin and saves contact query in database .
Note: I will add more functionality following Semantic Versioning soon
The major technologies that i have used to build this project. Here are:
- Laravel v5.8 & v6 : The PHP Framework for Testing the package.
- Send user query to Admin
- Store the query in the database.
- Developer can easily publish Config and View file.
- Developer can easiy handle admin's email of this package via dedicated Config file.
- Developer can easily design the view file for contact us page.
And many more. Explore them by following "Getting Started" section.
To use this package and running follow these simple example steps.
Basic understanding of "How to install laravel package" and Composer.
*Must need configured mail server
-
Run the command command
composer require masud99rana/contact
-
Publish the package Config and View file
php artisan vendor:publish --tag=contact-publish
You will now find the Config file located in /config/contact.php
You will now find the View file located in /resources/views/vendor/contact
That's Cool. Now, you are ready to go.
If you face any problem to installation this package feel free to inform me.
Note: I will update this section soon.
Note: I will update this section soon.
Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/newFeature
) - Commit your Changes (
git commit -m 'Add some newFeature'
) - Push to the Branch (
git push origin feature/newFeature
) - Open a Pull Request
This is an open-source package. You can use or distribute it any legal purpose.
Md. Masud Rana
Package Link: https://packagist.org/packages/masud99rana/contact
Note: I will update this section soon.
Note: I will update this section soon.
Note: I will update this section soon.
Note: I will update this section soon.
Note: I will update this section soon.
- Thank you so much! 💖