Custom CLI Return "Cannot declare class name in use" |
I found the problem, previously I add the someone\plugins namespace on composer.json manually, look like this
.... "autoload": { "psr-4": { "App\\": "app", "Config\\": "app/Config", "someone\\plugin\\": "app/ThirdParty/trydummy/src" }, "exclude-from-classmap": [ "**/Database/Migrations/**" ] }, ..... Then I forgot there's a Autoloader.php file, so I add there and delete the one on the composer.json. Then I run this command `composer dump-autoload`, still occurred. But I've changed the folder trydummy to try-dummy, and now it worked. I don't know how to clear that mess that I've made. Thank you very much for your help! |
Messages In This Thread |
Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 03-31-2021, 08:28 AM
RE: Custom CLI Return "Cannot declare class name in use" - by [email protected] - 03-31-2021, 02:54 PM
RE: Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 03-31-2021, 06:51 PM
RE: Custom CLI Return "Cannot declare class name in use" - by [email protected] - 04-01-2021, 02:12 AM
RE: Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 04-01-2021, 03:20 AM
|