J
J
jazzus2019-04-29 20:55:11
Laravel
jazzus, 2019-04-29 20:55:11

How to specify message to min_width in dimensions in Request Validation?

Laravel Request Validation
I need to validate image width/height.
Made a rule

'file' => 'dimensions:min_width=350,min_height=350'

How now to specify a message separately for height and width?
It doesn't work like that
'file.dimensions.min_width ' => 'Сообщение',

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-04-29
@jazzus

No way. Write your own validation rule with the necessary messages. To understand this, it was enough to look into the validation language file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question