Laravel-modules: After upgrade from 8.0 to 8.2, make-component command still not working.

Created on 11 Nov 2020  路  8Comments  路  Source: nWidart/laravel-modules

Hi Nicholas,
Thank you for your hard working on upgrade package version.

I've upgraded to version 8.2, but in modules.php (config), there is no 'component-class' or 'component-view'.
On the other hand, when I run command:
php artisan module:make-component _component_name_ _module_name_

Command "module:make-component" is not defined.message appeared on the terminal.

I tried to delete vendor folder and reinstall packages, but there was no hope.
Best regards.

Most helpful comment

@nWidart This can be closed as you've merged #1148

All 8 comments

I have the same issue , also component inside module not resolved yet.
"Unable to locate a class or view for component ... ".

you can resolve them by using this syntax:

for example, if you have a Blog Module and you create a component in Blog/Resources/views/components/sidebar.blade.php

you can resolve it like that

as it explained here:
https://laravel.com/docs/8.x/packages#anonymous-components

Up vote.
Please update this function.

You can change config in modules.php

ComponentClassMakeCommand::class, ComponentViewMakeCommand::class,

add this classes to commands so your issue resolved

@davidkai147 I've created PR #1148

@nWidart This can be closed as you've merged #1148

you can resolve them by using this syntax:

for example, if you have a Blog Module and you create a component in Blog/Resources/views/components/sidebar.blade.php

you can resolve it like that

as it explained here:
https://laravel.com/docs/8.x/packages#anonymous-components

Thanks for this. The documentation page need to be updated. @nWidart

you can resolve them by using this syntax:

for example, if you have a Blog Module and you create a component in Blog/Resources/views/components/sidebar.blade.php
you can resolve it like that

as it explained here:
https://laravel.com/docs/8.x/packages#anonymous-components

Thanks for this. The documentation page need to be updated. @nWidart

Make a PR to it

Was this page helpful?
0 / 5 - 0 ratings