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?
– novic
https://packagist.org/packages/prettus/l5-repository
– Lucas Caresia
I just did the installation and it worked normally
– novic
I edited the question by putting a list of commands I used.
– Lucas Caresia
In your question tá prettus/L5-require and in the comment L5-Repository?
– novic
I updated, I got confused.
– Lucas Caresia
that’s what I did in config/app.php
Prettus\Repository\Providers\RepositoryServiceProvider::class
where?– novic
I put this inside the Providers
– Lucas Caresia
if I missed doing that I guess:
php artisan vendor:publish --provider "Prettus\Repository\Providers\RepositoryServiceProvider"
– novic
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.
– Lucas Caresia
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 ...
– novic
Actually I formatted today, is with Windows 10 reset, I’ll see what can be, thanks anyway.
– Lucas Caresia
have tried
php composer.phar dumpautoload
– novic
Could not open input file: Composer.phar
– Lucas Caresia
have to download put in the application folder again and run the command think it is lack of load of packages
– novic
I’ve already used
composer dumpautoload
, it carries everything, but the error continues– Lucas Caresia
Well it’s something particular we can’t reproduce
– novic
Yes, I understand, thank you anyway
– Lucas Caresia