When I change app.blade.php to base.blade.php I am having the following error.
InvalidArgumentException View [layouts.app] not found. (View: D:\Code\my-app\vendor\livewire\livewire\src\Macros\livewire-view-component.blade.php)
layouts.app was not found.
Did you mean layouts\base?
Otherwise, it works great.
-Here is my code.
resources\views\layouts\base.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
@livewireStyles
</head>
<body>
@livewire('auth.register')
@livewireScripts
</body>
</html>
resources\views\livewire\auth\register.blade.php
<div>
Registration Form
</div>
web.php
<?php
use App\Http\Livewire\Auth\Register;
use Illuminate\Support\Facades\Route;
Route::get('/register', Register::class);
app\Http\Livewire\Auth\Register.php
<?php
namespace App\Http\Livewire\Auth;
use Livewire\Component;
class Register extends Component
{
public function render()
{
return view('livewire.auth.register');
}
}
Note: app.blade.php is still works