Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tamedevelopers committed Aug 22, 2024
1 parent 4c15256 commit dc113de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Methods/ValidatorMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static function exceptData($keys = null, $data = null)
*
* @return mixed
*/
public static function old($key = null, $default = null)
public static function _old($key = null, $default = null)
{
// in array keys
$formData = self::getAllForm();
Expand Down
3 changes: 2 additions & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use Tamedevelopers\Support\Str;
use Tamedevelopers\Validator\Validator;
use Tamedevelopers\Validator\Methods\CsrfToken;
use Tamedevelopers\Validator\Methods\ValidatorMethod;


if (! function_exists('form')) {
Expand Down Expand Up @@ -33,7 +34,7 @@ function form($attribute = null)
*/
function old($key = null, $default = null)
{
return form()->old($key, $default);
return ValidatorMethod::old($key, $default);
}
}

Expand Down

0 comments on commit dc113de

Please sign in to comment.