Skip to content

Commit cb49bda

Browse files
authored
Merge pull request #14 from adhenrique/develop
adjusting typo of resource field and changing getRules to public
2 parents 767ed0e + ce3dcd8 commit cb49bda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Resource/Resource.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected function defaultData(): array
1313
return [
1414
'created_at' => $this->created_at,
1515
'updated_at' => $this->updated_at,
16-
'inactivated_at' => $this->updated_at,
16+
'inactivated_at' => $this->inactivated_at,
1717
'deleted_at' => $this->deleted_at,
1818
];
1919
}

src/Services/ValidateService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle(array $data, string $action = null): array
2020
return Validator::validate($data, $this->getRules($action));
2121
}
2222

23-
private function getRules(string $action = null): array
23+
public function getRules(string $action = null): array
2424
{
2525
$rules = $this->rules;
2626

0 commit comments

Comments
 (0)