Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
CRAP | |
100.00% |
0 / 0 |
| StoreImage | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
0 / 0 |
| authorize | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| rules | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
| <?php | |
| namespace Mtc\Shop\Http\Requests; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class StoreImage extends FormRequest | |
| { | |
| /** | |
| * Determine if the user is authorized to make this request. | |
| * | |
| * @return bool | |
| */ | |
| public function authorize() | |
| { | |
| return true; | |
| } | |
| /** | |
| * Get the validation rules that apply to the request. | |
| * | |
| * @return array | |
| */ | |
| public function rules() | |
| { | |
| return [ | |
| 'file' => 'image' | |
| ]; | |
| } | |
| } |