mnshankar/civics
Composer 安装命令:
composer require mnshankar/civics
包简介
US Citizenship Test Easy Prep
README 文档
README
civics
US Naturalization Test Flash Cards. Because.. ignorance is not cool :-)
This Laravel 5+ package provides an easy drop-in package to help you brush up on your (US) civic knowledge.
Installation
Within your laravel 5 project,
composer require "mnshankar/civics"
(Use Tag v0.9 for Laravel 5.0 and 5.1 and Use Tag v1.0 for Laravel 5.2)
Next, add the service provider to your providers array in app/config/app.php:
mnshankar\civics\CivicsServiceProvider::class,
The application can then be accessed by appending "/civics" after your base url:
http://{your-app-base-url}/civics
Optional
Publish your view file to change the look-and-feel of the displayed flashcards
php artisan vendor:publish --provider="mnshankar/civics/CivicsServiceProvider"
Features
- Randomized order of questions
- Uses a self-contained sqlite database installed along with the package
- Seed file for list of questions is provided. So, if/when answers to questions do change, updating the system is as easy as updating the seed file and reseeding like so:
php artisan db:seed --class=mnshankar\civics\seeds\QuestionSeeder
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-02