Closed diorz38 closed 3 years ago
Please try this solution - https://github.com/mhmiton/laravel-modules-livewire/issues/2#issuecomment-761831051
yes i have try that, but another error appear:
InvalidArgumentException
View [layouts.dafault] not found.
and my route module break also i aready try your example too, and it works, what the differents? even the route for normal module still break
Here is a spelling mistake. You need to correction in the backend module config file.
'default' => 'backend::layouts.dafault'
to 'default' => 'backend::layouts.default'
After performed php artisan optimize:clear
its all good now, except the module's route for a page without livewire still broke.
hope u'll solve that soon.
thx
You removed the module route namespace, so you should use the laravel default route like this -
use Modules\Auth\Http\Controllers\Backend\LoginController as BackendLoginController;
use Illuminate\Support\Facades\Route;
Route::get('backend/login', [BackendLoginController::class, 'index'])->name('backend.login');
You can check this - https://laravel.com/docs/8.x/routing#the-default-route-files
Also, I will try to add a separate route macro to support the module route namespace in this package.
when i try to create Livewire Module, this us what happen:
step to reproduce: install laravel 8, package i use:
in terminal:
in routes/web.php (inside modules Backend):
in my component:
my module Config:
when i change mabWebroute just like you suggest, to this:
another error appear:
but i make sure that layouts default.blade.php exist