😂[ERROR] Livewire page component layout view not found: [components.layouts.app] (ok)

https://laracasts.com/discuss/channels/livewire/livewire-page-component-layout-view-not-found-componentslayoutsapp

Cách 1

php artisan livewire:publish --config C:\xampp82\htdocs\lva7\config\livewire.php

'layout' => 'layouts.app',
// 'layout' => 'components.layouts.app',

Cách 2

php artisan livewire:layout

C:\xampp82\htdocs\lva7\resources\views\components\layouts\app.blade.php

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{{ $title ?? 'Page Title' }}</title>
</head>
<body>
  {{ $slot }}
</body>
</html>

Last updated