Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| QuestionExport | n/a |
0 / 0 |
n/a |
0 / 0 |
2 | n/a |
0 / 0 |
|||
| authorize | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
| rules | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Requests; |
| 4 | |
| 5 | use Illuminate\Foundation\Http\FormRequest; |
| 6 | |
| 7 | /** |
| 8 | * @codeCoverageIgnore |
| 9 | */ |
| 10 | class QuestionExport extends FormRequest |
| 11 | { |
| 12 | /** |
| 13 | * Determine if the user is authorized to make this request. |
| 14 | * |
| 15 | * @return boolean |
| 16 | */ |
| 17 | public function authorize() |
| 18 | { |
| 19 | return auth()->check(); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Get the validation rules that apply to the request. |
| 24 | * |
| 25 | * @return array |
| 26 | */ |
| 27 | public function rules() |
| 28 | { |
| 29 | return [ |
| 30 | 'brand' => 'required|numeric|exists:brands,id' |
| 31 | ]; |
| 32 | } |
| 33 | } |