protected function validateImage($file, $fieldName, $imageOptions)
    {
        if ($rules = array_get($imageOptions, 'rules')) {
            $this->validationFactory()->make(
                [$fieldName => $file],
                [$fieldName => $rules]
            )->validate();
        }
    }
protected function validateImage($file, $fieldName, $imageOptions)
    {
        if ($rules = array_get($imageOptions, 'rules')) {
            $this->validationFactory()->make(
                [$fieldName => $file],
                [$fieldName => $rules]
            )->validate();
        }
    }
protected function validateImage ( $ file , $ fieldName , $ imageOptions ) { if ( $ rules = array_get ( $ imageOptions , 'rules' ) ) { $ this -> validationFactory ( ) -> make ( [ $ fieldName => $ file ] , [ $ fieldName => $ rules ] ) -> validate ( ) ; } }
Validate image file with given rules in option

@param $file
@param $fieldName
@param $imageOptions
Validate image file with given rules in option