mhmiton / laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.
MIT License
187 stars 34 forks source link

Cant call routes #6

Closed silicahd closed 3 years ago

silicahd commented 3 years ago

First of all than you for creating this. The one issue I fond so far is that you cant call routes like this.

Route::get('/pages', Pages::class)->name('pages.show');

the system will look for this in " UnexpectedValueException Invalid route action: [Modules\Ebadmin\Http\Controllers\Pages]. "

Even if you do something like this Route::get('/pages', \Modules\Core\Http\Livewire\Pages::class)->name('pages.show');

Response is UnexpectedValueException Invalid route action: [Modules\Ebadmin\Http\Controllers\Modules\Core\Http\Livewire\Pages].