laravel-quiz maintained by leobeal
Description
A simple Laravel Quiz package
Author
Last update
2018/05/23 23:34
(dev-master)
License
Downloads
181
Tags
LaravelQuiz
LaravelQuiz is a simple Questions package.
Installation
Via Composer
Instalation
composer require leobeal/laravel-quiz
You can publish the config with:
php artisan vendor:publish --provider="Leobeal\LaravelQuiz\QuizServiceProvider"
Change config/quiz.php according to your needs.
- The migrations won't be published and will be executed from the vendor folder.
After changing the config, run the migrations
php artisan migrate
Add the Quizzable Trait to your model
use Illuminate\Database\Eloquent\Model; use Leobeal\LaravelQuiz\Model\Quizzable; class Course extends Model { use Quizzable; // ... }
License
This package is open-sourced software licensed under the MIT license.