Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Yamotachi's avatar

[PT-BR] Erro no Docker após instalar o Spatie

PS: If you are reading this and don't speak portuguese, sorry, as the forum doesn't have a section for languages I feel like putting some kind of mark [PT-BR] showing the language in question.

Olá, pessoal! Toda vez que tento instalar o Spatie pra usar o Laravel Permissions, primeiro ele dá o seguinte warning:

"Class App\Console\Commands\ModelMakeCommand located in ./app/Console/Command/ModelMakeCommand.php does not comply with psr-4 autoloading standard. Skipping. Class App\Repositories\BaseRepository located in ./app/Repositories/ColaboradorRepository.php does not comply with psr-4 autoloading standard. Skipping. Method Illuminate\Foundation\ComposerScripts::postAutoloadDump is not callable, can not call post-autoload-dump script"

Mas é instalado. Só que quando eu vou rodar o docker-compose up ele dá esse erro:

"In Container.php line 729:

Class App\Console\Commands\ModelMakeCommand does not exist"

Alguém sabe como resolver?

0 likes
1 reply
lbecket's avatar

I have encountered this in the past when I fail to match my class name to my file name. You might start by checking that.

Please or to participate in this conversation.