Laravel-Simple-Faqs
A Laravel 4 package to add simple database driven FAQs to a site, (*1)
Features
- Generates a page of FAQs
- Draft/Approved status
- Soft deletes
- Configurable URL, e.g. /faqs
- Order field to control order
Installation
Add the following to you composer.json file, (*2)
"fbf/laravel-simple-faqs": "dev-master"
Run, (*3)
composer update
Add the following to app/config/app.php, (*4)
'Fbf\LaravelSimpleFaqs\LaravelSimpleFaqsServiceProvider'
Run the package migration, (*5)
php artisan migrate --package=fbf/laravel-simple-faqs
Publish the config, (*6)
php artisan config:publish fbf/laravel-simple-faqs
Configuration
URI of the FAQs page, (*7)
'uri' => 'faqs',
Page title of the FAQs page, (*8)
'page_title' => 'My FAQs',
Meta description of the FAQs page, (*9)
'meta_description' => 'This is the description for my FAQs page',
Meta keywords of the FAQs page, (*10)
'meta_keywords' => 'These are the keywords for my FAQs page',
Determines whether to show questions at the top of the FAQs page that anchor to the FAQ below, (*11)
'show_questions_at_top' => true,
Administrator
You can use the excellent Laravel Administrator package by frozennode to administer your blog., (*12)
http://administrator.frozennode.com/docs/installation, (*13)
A ready-to-use model config file for the Faq model (faqs.php) is provided in the src/config/administrator directory of the package, which you can copy into the app/config/administrator directory (or whatever you set as the model_config_path in the administrator config file)., (*14)