From 1f7b1d80ab4537a1a0e6a46377e05479fcdf79aa Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 31 Dec 2021 16:02:36 +0100 Subject: [PATCH] Adding app/View/Components/Layout.php --- app/View/Components/Layout.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/View/Components/Layout.php diff --git a/app/View/Components/Layout.php b/app/View/Components/Layout.php new file mode 100644 index 0000000..955ece4 --- /dev/null +++ b/app/View/Components/Layout.php @@ -0,0 +1,28 @@ +name = $name; + } + + public function render() + { + return view("layouts.{$this->name}"); + } +}