Error installing larvel phplegends / en-br-validator

2

When I try to install the pt-br-validator via composer require laravellegends / en-br-validator or even editing the composer file manually I'm encountering the following error:

[Symfony\Component\Debug\Exception\FatalThrowableError]       
  Class 'PHPLegends\PtBrValidator\ValidatorProvider' not found

Using Laravel 5.3

    
asked by anonymous 24.04.2017 / 22:04

2 answers

5

I was able to solve the problem (installing via composer).

The line that should be added to the file config/app.php is actually:

  

LaravelLegends \ PtBrValidator \ ValidatorProvider :: class

    
24.04.2017 / 22:22
3

According to the PHPLegends documentation, this library was moved to another organization called LaravelLegends .

Whenever you install this library, use these steps:

The composer informs you when you install that you should prefer to use laravellegends/pt-br-validator instead of phplegends/pt-br-validator .

I am the maintainer of the library:)

I changed the namespace PHPLegends to LaravelLegends to more efficiently focus the libraries I was developing for Laravel in a single organization.

I hope this information will help you.

    
26.04.2017 / 17:49