PHP code example of bpocallaghan / faq
1. Go to this page and download the library: Download bpocallaghan/faq library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bpocallaghan / faq example snippets
bash
Route::group(['prefix' => 'faq', 'namespace' => 'FAQ\Controllers\Website'], function () {
Route::get('', 'FAQController@index');
Route::post('/question/{faq}/{type?}', 'FAQController@incrementClick');
});
bash
php artisan faq:publish
bash
php artisan faq:publish --files=all