2017 © Pedro Peláez
 

library faq

image

virtualorz/faq

  • Friday, June 8, 2018
  • by virtualorz
  • Repository
  • 0 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Installation

install by composer


composer require virtualorz/faq

edit config/app.php


'providers' => [
    ...
    Virtualorz\Fileupload\FileuploadServiceProvider::class,
    Virtualorz\Cate\CateServiceProvider::class,
    Virtualorz\Faq\FaqServiceProvider::class,
    Virtualorz\Pagination\PaginationServiceProvider::class,
    ...
]

'aliases' => [
    ...
    'Fileupload' => Virtualorz\Fileupload\FileuploadFacade::class,
    'Cate' => Virtualorz\Cate\CateFacade::class,
    'Faq' => Virtualorz\Faq\FaqFacade::class,
    'Pagination' => Virtualorz\Pagination\PaginationFacade::class,
    ...
]

migration db table


php artisan migrate

usage

1. get cate list data


$dataSet = Faq::list('use type');

use type : eg. news, member , product ...etc, different type in your application $dataSet : return date, (*1)

2. add data to cate


Faq::add('use type');

with request variable name required : faq-cate_id,faq-title,faq-answer,faq-order,faq-enable, (*2)

3. get cate detail


$dataRow = Faq::detail($faq_id);

4. edit data to cate


Faq::edit();

with request variable name required : faq-cate_id,faq-title,faq-answer,faq-order,faq-enable, (*3)

5. delete cate data


Faq::delete();

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

6. enable cate data


Faq::enable($type);

with request variable name required : id as integer or id as array $type is 0 or1 , 0 to disable i to enable, (*5)

The Versions

08/06 2018
06/06 2018

1.0.4

1.0.4.0

  Sources   Download

The Requires

 

by Avatar virtualorz

06/06 2018

1.0.3

1.0.3.0

  Sources   Download

The Requires

 

by Avatar virtualorz

05/06 2018

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

by Avatar virtualorz

05/06 2018

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

by Avatar virtualorz

05/06 2018

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Avatar virtualorz