Error executing make command with repository plugin

Asked

Viewed 127 times

0

When I execute the command php artisan make:entity User it returns the error

[ReflectionException]
Method Prettus\Repository\Generators\Commands\EntityCommand::handle() does not exist

I did the installation as it says in the documentation, with this sequence of commands (windows).

composer global require "laravel/installer"
laravel new project
composer require prettus/l5-repository
Coloquei `Prettus\Repository\Providers\RepositoryServiceProvider::class,` em `config/app`
php artisan make:entity User
  • What is the package?

  • 1

    https://packagist.org/packages/prettus/l5-repository

  • I just did the installation and it worked normally

  • I edited the question by putting a list of commands I used.

  • In your question tá prettus/L5-require and in the comment L5-Repository?

  • I updated, I got confused.

  • that’s what I did in config/app.php Prettus\Repository\Providers\RepositoryServiceProvider::class where?

  • I put this inside the Providers

  • if I missed doing that I guess: php artisan vendor:publish --provider "Prettus\Repository\Providers\RepositoryServiceProvider"

  • Yes, I did on my PC a few days ago and it worked, and now it just stopped working, I’ve done that command too, and I have no idea what it might be.

  • is maybe it’s some package added to these days, which may be getting you in trouble, a fine-toothed comb... check what you’ve done in the past few days ...

  • Actually I formatted today, is with Windows 10 reset, I’ll see what can be, thanks anyway.

  • have tried php composer.phar dumpautoload

  • Could not open input file: Composer.phar

  • have to download put in the application folder again and run the command think it is lack of load of packages

  • I’ve already used composer dumpautoload, it carries everything, but the error continues

  • Well it’s something particular we can’t reproduce

  • 1

    Yes, I understand, thank you anyway

Show 13 more comments
No answers

Browser other questions tagged

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