2017 © Pedro Peláez
 

library contact

image

virtualorz/contact

  • Wednesday, June 13, 2018
  • by virtualorz
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Installation

install by composer


composer require virtualorz/contact

edit config/app.php


'providers' => [
    ...
    Virtualorz\Contact\ContactServiceProvider::class,
    Virtualorz\Pagination\PaginationServiceProvider::class,
    ...
]

'aliases' => [
    ...
    'Contact' => Virtualorz\Contact\ContactFacade::class,
    'Pagination' => Virtualorz\Pagination\PaginationFacade::class,
    ...
]

migration db table


php artisan migrate

publish config


php artisan vendor:publish --provider="Virtualorz\Contact\ContactServiceProvider"

edit config of admin email


'admin_email' => 'your admin email address here'

usage

1. get cate list data


$dataSet = Contact::list();

$dataSet : return date, (*1)

2. add data to cate


Contact::add();

with request variable name required : contact-name,contact-company,contact-tel,contact-email,contact-message, (*2)

3. get cate detail


$dataRow = Contact::detail($contact_id,$is_backend);
$is_backend : if backend get detail set 1 to change status to 1

4. edit data to cate


Contact::reply();

with request variable name required : contact_reply-content, (*3)

5. delete cate data


Contact::delete();

with request variable name required : id as integer or id as array, (*4)

The Versions

13/06 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Avatar virtualorz

13/06 2018

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by Avatar virtualorz

13/06 2018

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by Avatar virtualorz

13/06 2018

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Avatar virtualorz