Skip to content

Commit f0a221e

Browse files
committed
fix validator helper
1 parent 466cf4f commit f0a221e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/functions/laravel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
use Illuminate\Contracts\Cookie\Factory as CookieFactory;
44
use Illuminate\Contracts\Routing\ResponseFactory;
5-
use Illuminate\Contracts\Validation\Factory as ValidationFactory;
65
use Illuminate\Contracts\View\Factory as ViewFactory;
76

87
if (! function_exists('app_path')) {
@@ -431,7 +430,7 @@ function __($key = null, $replace = [], $locale = null)
431430
*/
432431
function validator(array $data = [], array $rules = [], array $messages = [], array $customAttributes = [])
433432
{
434-
$factory = app(ValidationFactory::class);
433+
$factory = app('validator');
435434

436435
if (func_num_args() === 0) {
437436
return $factory;

0 commit comments

Comments
 (0)