'name' => 'required',
'password' => 'required',
'question_text' => 'required | unique:questions',
'language_id' => 'required | exists:languages,id',
'answers' => 'array | between:4,4',
'answers.[].answer_text' => 'required',
'answers.[].is_right' => 'required | boolean',
'question_text' => 'required | unique:questions,question_text', (current ID ingnored)
'language_id' => 'required | exists:languages,id',
'answers' => 'array | between:4,4',
'answers..id' => 'sometimes | numeric',
'answers..answer_text' => 'required',
'answers..is_right' => 'required | boolean',
'name' => 'required | unique:languages',
'slug' => 'required | unique:languages'
'name' => 'required | unique:languages',
'slug' => 'required | unique:languages'
'name' => 'required',
'email' => 'required | email | unique:users',
'is_public' => 'required | boolean'
user should be the room admin
'room' => 'required | numeric',
'stepsCount' => 'required | numeric',
'lang' => 'required | numeric',
user should be the room admin
'room' => 'required | numeric',
'stepsCount' => 'required | numeric',
'quiz_id' => 'required | numeric',
'room' => 'required | numeric',
'step' => 'required | numeric',
'question' => 'required | numeric',
'answer' => 'required | numeric',
'time' => 'required | numeric',
'room' => 'required | numeric',
'step' => 'required | numeric',
'question' => 'required | numeric',
'answer' => 'required | numeric',
'time' => 'required | numeric',
'question_text' => 'required',
'answers' => 'array | between:4,4',
'answers.[].answer_text' => 'required',
'answers.[].is_right' => 'required | boolean',
'question_text' => 'required',
'answers' => 'array | between:4,4',
'answers.[].id' => 'sometimes | numeric',
'answers.[].answer_text' => 'required',
'answers.[].is_right' => 'required | boolean',
'quiz_name' => 'required',
'quiz_name' => 'required',
'data' => [
'user' => Username,
'type' => Leave or Join,
]
'data' => [
'question' => Question Text, // string
'answers' => Answers Array
]
'data' => [
'results' => Results Array
]
'data' => [
'player' => Player Name
]
var data = {
'room' : id,
'stepsCount': number,
'lang': id,
'user' : token (without 'Bearer')
};
var data = {
'room' : id,
'stepsCount': number,
'quiz_id': id,
'user' : token (without 'Bearer')
};
var data = {
'room' : id,
'user' : token ,(without 'Bearer')
'step' : number,
'question' : id,
'answer' : id,
'time' : milliseconds
};
var data = {
'room' : id,
'user' : token ,(without 'Bearer')
'step' : number,
'question' : id,
'answer' : id,
'time' : milliseconds
};
var data = {
'room' : id,
'user' : token (without 'Bearer')
};