0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Livewire page component layout view not found: [components.layouts.app]

Last updated at Posted at 2024-12-10

概要

最近、Livewireの画面を作っていて、いくつかの画面を作った後で、新たな画面を作ってみたら掲記エラーが出たので記しておきます。

解決した策

config/livewire.php(抜粋)変更前
    'layout' => 'components.layouts.app',
config/livewire.php(抜粋)変更後
    // 'layout' => 'components.layouts.app',
    'layout' => 'layouts.app',

経緯

resources/views/components/layouts/app.blade.phpが存在せず、
resources/views/layouts/app.blade.phpが存在していたので、
上のように変えたらエラーが出なくなりました。
この辺はデフォルトのまま使っていたような気がするんですけど。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?