개발/laravel

laravel. validator 문서 및 커스터마이징

ttoance 2022. 6. 27. 20:18

공식문서 : 

 

Laravel - The PHP Framework For Web Artisans

Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.

laravel.com

 

 

1. 에러 메시지에  :input, :attribute, :min, :max 사용해서 메시지 커스터마이징 가능함 

'between' => 'The :attribute value :input is not between :min - :max.'
 

Laravel Array Validation Message Value

For array validation messages, is there a way to display the value as opposed to the attribute? Doing so without using a custom validator. Example: $messages = [ ‘*' => ':value is inval...

stackoverflow.com

 

2. image, mimes 활용 관련 

 

Laravel MIME Validator not working as expected

i'm creating an API in Laravel 5.5 and this API supports receiving some files for profile pictures and such. I want to limit this through a form request to accept only JPG and PNG images and i'm s...

stackoverflow.com

 

 

Laravel image rule validation is not working for Laravel 8 but was working for Laravel 7 | Laravel | Image | Validation

I was working on a Laravel application with version 7.30.4. The project was working fine. But recently I updated the Laravel version to version 8.0.0. The application is also working normally. But ...

stackoverflow.com

 

반응형