sadegh19b / laravel-persian-validation Goto Github PK
View Code? Open in Web Editor NEWA persian alphabet, number and etc. validation package for laravel
License: MIT License
A persian alphabet, number and etc. validation package for laravel
License: MIT License
hi
please set this package with laravel 9
thanks
you can use the str_pad
instead of if else statement :
https://github.com/sadegh19b/laravel-persian-validation/blob/9121469e5c472e90c01795d53453defa55c006f3/src/PersianValidators.php#L371C9-L375C10
and you can use single statement instead of this :
https://github.com/sadegh19b/laravel-persian-validation/blob/9121469e5c472e90c01795d53453defa55c006f3/src/PersianValidators.php#L387C9-L391C10
i refactored these issues in this PR:
#15
Hi dear Sadegh.
For example, for the birth date field, it should be prevented that the date is selected from the future. Or as another example, the date of death must be after the date of birth.
Tanks a lot.
if you put the "1234-3523-2523-2534" as a bank card number and "ir_bank_card_number:seprate" as validation rule, it always returns false.
the same thing happens for other rules like ir_sheba, ...
Hi,
Unfortunately, the existing regex code that you used for the postal code does not work in some cases.
For example, 5951412749
Hi dear Sadegh.
The ir_sheba or ir_card_number return error when the field is nullable
Hi
With LaravelExcel package when you try to use ir_national_code validator, the input value for validateIranianNationalCode method in PersianValidators.php is integer, so line 378 throws with an exception of: Trying to access array offset on value of type int.
Please add string cast for $value input in method to avoid this error.
Thank you for helpful package.
To be compatible with packages like morilog/jalali
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.