Skip to content

Commit dc113de

Browse files
update
1 parent 4c15256 commit dc113de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Methods/ValidatorMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public static function exceptData($keys = null, $data = null)
234234
*
235235
* @return mixed
236236
*/
237-
public static function old($key = null, $default = null)
237+
public static function _old($key = null, $default = null)
238238
{
239239
// in array keys
240240
$formData = self::getAllForm();

src/helpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Tamedevelopers\Support\Str;
44
use Tamedevelopers\Validator\Validator;
55
use Tamedevelopers\Validator\Methods\CsrfToken;
6+
use Tamedevelopers\Validator\Methods\ValidatorMethod;
67

78

89
if (! function_exists('form')) {
@@ -33,7 +34,7 @@ function form($attribute = null)
3334
*/
3435
function old($key = null, $default = null)
3536
{
36-
return form()->old($key, $default);
37+
return ValidatorMethod::old($key, $default);
3738
}
3839
}
3940

0 commit comments

Comments
 (0)