Error installing Laravel phplegends/en-Validator

Asked

Viewed 374 times

2

When trying to install the en-Validator via Composer require laravellegends/en-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

2 answers

5


I managed to solve the problem (installing via Poser).

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

Laravellegends Ptbrvalidator Validatorprovider::class

  • In fact, the documentation actually says that the namespace is LaravelLegends. I am the library maintainer along with another user here from Stackoverflow. Any questions, just call on chat

3

According to the documentation of Phplegends, this library was moved to another organization, called Laravellegends.

Whenever you install this library, use these steps:

Composer informs, when you will install, that you should prefer to use laravellegends/pt-br-validator instead of phplegends/pt-br-validator.

I am the keeper of the library :)

I changed the namespace PHPLegends for LaravelLegends to more efficiently concentrate the libraries I would develop for Laravel in a single organization.

I hope this information helps you.

  • Thank you, Wallace. I made the mistake because I visited your old page. I suggest you edit the readme of the old page and just leave it with the warning and link to the Laravellegends, so we can prevent more people from making the same mistake :)

  • There’s a Link there, but it’s small kkkk

Browser other questions tagged

You are not signed in. Login or sign up in order to post.