Download the PHP package virtualorz/faq without Composer
On this page you can find all versions of the php package virtualorz/faq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package faq
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
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
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
5. delete cate data
Faq::delete();
with request variable name required : id as integer or id as array
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
All versions of faq with dependencies
PHP Build Version
Package Version
Requires
virtualorz/fileupload Version
^1.0.2
virtualorz/cate Version ^1.1.2
virtualorz/pagination Version ^1.0.0
virtualorz/cate Version ^1.1.2
virtualorz/pagination Version ^1.0.0
The package virtualorz/faq contains the following files
Loading the files please wait ...