Skip to content

Commit f735cb5

Browse files
committed
1.1.7
1 parent 50b27f8 commit f735cb5

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ PHP has powerful database abstraction libraries like Doctrine and Laravel Eloque
1010

1111
- PHP 7.4 and later.
1212
- PHP PDO extension.
13-
- [InitPHP Validation](https://github.com/InitPHP/Validation) (Only if you want to use validation operations in Model class.)
1413

1514
## Supported Databases
1615

@@ -312,7 +311,7 @@ class Posts extends Model
312311
protected bool $updatable = true;
313312

314313
protected array $validation = [
315-
'id' => 'is_unique|integer', // Validation methods can be string separated by a perpendicular line.
314+
'id' => 'is_unique|int', // Validation methods can be string separated by a perpendicular line.
316315
'title' => ['required', 'string'], // Validation methods can be given as an array.
317316
];
318317

src/Validation/Validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Muhammet ŞAFAK <info@muhammetsafak.com.tr>
88
* @copyright Copyright © 2022 Muhammet ŞAFAK
99
* @license ./LICENSE MIT
10-
* @version 1.0
10+
* @version 1.1.7
1111
* @link https://www.muhammetsafak.com.tr
1212
*/
1313

0 commit comments

Comments
 (0)