InterNACHI / modular

Modularize your Laravel application
MIT License
796 stars 65 forks source link

Support: How can Use Livewire Volt with InterNACHI/modular #64

Closed polodev closed 9 months ago

polodev commented 9 months ago

I like volt due to its colocation features. So I am using volt component instead of regular livewire component. How can use it? Thanks

benbjurstrom commented 9 months ago

I'm using it with volt. Just needed to mount the module's path in VoltServiceProvider.php

Volt::mount([
    resource_path('views/livewire'),
    resource_path('views/pages'),
    base_path('/app-modules/module/resources/views'),
]);
polodev commented 9 months ago

Thank you @benbjurstrom