Skip to content

Commit ebc1c9e

Browse files
committed
Removed trim function
1 parent 00436b4 commit ebc1c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/AutoValidation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function getValidationRules(string $class, string $method)
5858
$namespace = 'App\Http\Controllers';
5959
}
6060

61-
$class_name = ltrim($class, $namespace);
61+
$class_name = substr($class, strlen($namespace) + 1);
6262

6363
return config("validation.rules.{$class_name}.{$method}");
6464
}

0 commit comments

Comments
 (0)