GithubHelp home page GithubHelp logo

dbrandydude / contact Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bootstrapcms/contact

0.0 1.0 0.0 669 KB

A Contact Form Backend For Laravel 5

Home Page: https://gjcampbell.co.uk/

License: MIT License

PHP 83.10% HTML 16.90%

contact's Introduction

Laravel Contact

Laravel Contact was created by, and is maintained by Graham Campbell, and provides a contact form backend for Laravel 5. It utilises a few of my packages including Laravel Throttle and Laravel Binput. Feel free to check out the releases, license, and contribution guidelines.

Laravel Contact

Build Status Coverage Status Quality Score Software License Latest Version

Installation

PHP 5.5+ or HHVM 3.6+, and Composer are required.

To get the latest version of Laravel Contact, simply add the following line to the require block of your composer.json file:

"graham-campbell/contact": "~1.0"

You'll then need to run composer install or composer update to download it and have the autoloader updated.

You will need to register a few service providers before you attempt to load the Laravel Contact service provider. Open up config/app.php and add the following to the providers key.

  • 'GrahamCampbell\Security\SecurityServiceProvider'
  • 'GrahamCampbell\Binput\BinputServiceProvider'
  • 'GrahamCampbell\Throttle\ThrottleServiceProvider'

Once Laravel Contact is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

  • 'GrahamCampbell\Contact\ContactServiceProvider'

Configuration

Laravel Contact supports optional configuration.

To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish

This will create a config/contact.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

There are a few config options:

Path To The Form

This option ('path') defines the path to the contact form. This is the page where your contact form should be. The default value for this setting is 'pages/contact'.

Contact Form Email

This option ('email') defines the email address to send contact form messages to. It can be a single address, or an array of email addresses. The default value for this setting is '[email protected]'.

Email Layout

This option ('layout') defines the layout to extend when building email views. The default value for this setting is 'layouts.email'.

Additional Configuration

You will need to add a 'name' key to your app config to set the application name.

Usage

Laravel Contact is designed to work with Bootstrap CMS. In order for it to work in any Laravel application, you must ensure that you know how to use my Laravel Core package as configuration and knowledge of the app:install and app:update commands is required.

Laravel Contact provides you with the backend functionality (and email views) to create a comment form. You will need to write your own contact form front end with this plugin, although an example contact form is included ('contact.form'). Laravel Contact will register the route contact.post which will accept POST requests to the path contact.

License

Laravel Contact is licensed under The MIT License (MIT).

contact's People

Contributors

grahamcampbell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.