Skip to content

Commit

Permalink
Removed trim function
Browse files Browse the repository at this point in the history
  • Loading branch information
reibengu committed May 8, 2017
1 parent 00436b4 commit ebc1c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/AutoValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function getValidationRules(string $class, string $method)
$namespace = 'App\Http\Controllers';
}

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

return config("validation.rules.{$class_name}.{$method}");
}
Expand Down

0 comments on commit ebc1c9e

Please sign in to comment.