I am using Laravel 8 for my project But I am facing the following error Target class [CommandMakeCommand] does not exist in Laravel. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.
How Target class [CommandMakeCommand] does not exist Error Occurs ?
I am using Laravel 8 for my project But I am facing the following error.
Illuminate\Contracts\Container\BindingResolutionException Target class [CommandMakeCommand] does not exist.
So here I am writing all possible solutions that I have tried to resolve this error.
How To Solve Target class [CommandMakeCommand] does not exist Error ?
How To Solve Target class [CommandMakeCommand] does not exist Error?
To Solve Target class [CommandMakeCommand] does not exist Error In my case, I just Downgraded nwidart/laravel-modules package to 8.2 and my error was solved very easily OR You can try to downgrade nwidart/laravel-modules version in composer.json file. Just change this line to the below line: “nwidart/laravel-modules”: “8.2.*” Then delete composer.lock file and now, run this command: composer install Now, your error should be solved.
Target class [CommandMakeCommand] does not exist
To Solve Target class [CommandMakeCommand] does not exist Error In my case, I just Downgraded nwidart/laravel-modules package to 8.2 and my error was solved very easily OR You can try to downgrade nwidart/laravel-modules version in composer.json file. Just change this line to the below line: “nwidart/laravel-modules”: “8.2.*” Then delete composer.lock file and now, run this command: composer install Now, your error should be solved.
Solution 1: Use nwidart/laravel-modules version 8.2
In my case, I just Downgraded nwidart/laravel-modules package to 8.2 and my error was solved very easily.
OR
You can try to downgrade nwidart/laravel-modules version in composer.json file. Just change this line to the below line.
"nwidart/laravel-modules": "8.2.*"
Then delete composer.lock file and now, run this command.
composer install
Now, your error should be solved.
Summary
It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
Yes this worked for me too:
1) “nwidart/laravel-modules”: “8.2.*”
2) delete composer.json
3) composer install
#2) delet2 composer.lock (not delete composer.json)
Thank You For Your Suggestion Brother.