themes folder

This commit is contained in:
Sam Chen 2021-12-08 22:22:23 +08:00
parent d6c0377ee5
commit bc3e5a89ed
5 changed files with 19 additions and 1 deletions

View File

@ -16,6 +16,6 @@ class HomeController
$data['payments'][] = (new $payment)->handle();
}
return view('welcome', $data);
return view('home', $data);
}
}

View File

@ -14,6 +14,8 @@ return [
*/
'paths' => [
base_path('themes/acme-child'),
base_path('themes/acme'),
resource_path('views'),
],

View File

@ -0,0 +1 @@
<h2>child</h2>

View File

@ -0,0 +1 @@
<h2>parent</h2>

View File

@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>welcome acme</h1>
@include('header')
</body>
</html>