nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.46k stars 949 forks source link

Trait "Illuminate\Console\Prohibitable" not found #1893

Closed mktmsameera closed 1 month ago

mktmsameera commented 1 month ago

I need to install this dependencies to my laravel 11 fresh project. when i install, it will return the error as bellow.

Trait "Illuminate\Console\Prohibitable" not found

at vendor/nwidart/laravel-modules/src/Commands/BaseCommand.php:17 13▕ use Symfony\Component\Console\Output\OutputInterface; 14▕ 15▕ use function Laravel\Prompts\multiselect; 16▕ ➜ 17▕ abstract class BaseCommand extends Command implements PromptsForMissingInput 18▕ { 19▕ use ConfirmableTrait; 20▕ use Prohibitable;

How can i fix it.

alissn commented 1 month ago

Hi, @mktmsameera

What version of the Laravel framework and package are you trying to install?

also see #1875

solomon-ochepa commented 1 month ago

This issue comes up when you are using Laravel 10.x and laravel-modules ^10.0.11

Either way, to solve this issue kindly use 10.0.10 instead of ^10.0.11

alissn commented 1 month ago

This issue comes up when you are using Laravel 10.x and laravel-modules ^10.0.11

Either way, to solve this issue kindly use 10.0.10 instead of ^10.0.11

@solomon-ochepa the latest version of v10 of this package is: 10.0.6

solomon-ochepa commented 1 month ago

This issue comes up when you are using Laravel 10.x and laravel-modules ^10.0.11 Either way, to solve this issue kindly use 10.0.10 instead of ^10.0.11

@solomon-ochepa the latest version of v10 of this package is: 10.0.6

Sorry, I mean 11.0.10

Thanks for the correction.