Esempio n. 1
0
 public static function quiz_start_and_finish_url_array(QuizModel $quiz, \Eloquent $user)
 {
     $token = QuizController::assignTokenForQuizUser($user, $quiz);
     return array(\URL::action('quiz.question', [$user->id, $token, 1]), \URL::action('quiz.finished', [$user->id, $token]));
 }
 /**
  * Bootstrap the application events.
  *
  * @return void
  */
 public function boot()
 {
     $this->package('xjtuwangke/laravel-quiz');
     QuizController::registerRoutes();
 }