diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index b3848973..6fe5c036 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -16,6 +16,6 @@ class HomeController $data['payments'][] = (new $payment)->handle(); } - return view('welcome', $data); + return view('home', $data); } } diff --git a/config/view.php b/config/view.php index 22b8a18d..b5f587a2 100644 --- a/config/view.php +++ b/config/view.php @@ -14,6 +14,8 @@ return [ */ 'paths' => [ + base_path('themes/acme-child'), + base_path('themes/acme'), resource_path('views'), ], diff --git a/themes/acme-child/header.blade.php b/themes/acme-child/header.blade.php new file mode 100644 index 00000000..03dfe748 --- /dev/null +++ b/themes/acme-child/header.blade.php @@ -0,0 +1 @@ +

child

diff --git a/themes/acme/header.blade.php b/themes/acme/header.blade.php new file mode 100644 index 00000000..4944c8fa --- /dev/null +++ b/themes/acme/header.blade.php @@ -0,0 +1 @@ +

parent

diff --git a/themes/acme/home.blade.php b/themes/acme/home.blade.php new file mode 100644 index 00000000..ceb83190 --- /dev/null +++ b/themes/acme/home.blade.php @@ -0,0 +1,14 @@ + + + + + + + Document + + +

welcome acme

+ @include('header') + +