Skip to content

Package to send messages to the manager and saved in the database.

Notifications You must be signed in to change notification settings

ihahachi/package-contact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Contact Package

Total Downloads Latest Stable Version License

About Package

Package to send messages to the manager and saved in the database.

Installation

With Composer

Compatible with Laravel 5.x:

$ composer require iha/contact

After downloading package, Run this command :

$ php artisan vendor:publish

You see the composer.json like this :

{
    "require": {
        "iha/contact": "^1.0"
    }
}

Database

Run this command for generate database :

$ php artisan migrate

The default table name : contact

Run

Finally, serve the application.

$ php artisan serve

To serve the application, you can use php artisan serve, then open http://localhost:8000 from your browser. To access the contact page, hit the link http://localhost:8000/contact from your browser.

Configuration

The defaults configuration settings are set in config/contact.php.

<?php
return 
[
    'send_mail_to'  => 'sendTo@exemple.com',

    'externe_email' => 'TRUE',
];

the default views are set in resources/views/contact/

License

This Contact Package Wrapper for Laravel is open-sourced software licensed under the MIT license