Exemplo n.º 1
0
 public function rules()
 {
     return array_merge(parent::rules(), ['file' => ['required'], 'height' => ['required', 'integer', 'min:' . self::MIN_HEIGHT, 'max:' . self::MAX_HEIGHT], 'width' => ['required', 'integer', 'min:' . self::MIN_WIDTH, 'max:' . self::MAX_WIDTH], 'size' => ['required', 'integer', 'min:' . self::MIN_FILESIZE, 'max:' . self::MAX_FILESIZE], 'mime' => ['required', 'in:image/png']]);
 }