Added validation to tests creation and fixed a bug related to amount of wrong questions allowed in tests

This commit is contained in:
mwalbeck 2016-10-22 13:57:56 +02:00
parent b9ae12aa60
commit 7af12d0f5b
9 changed files with 287 additions and 142 deletions
app/Http/Requests

View file

@ -0,0 +1,30 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreUser extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}