From c8356e1a4fd12b84d7e91c7cb6a4c3a4402f2ed9 Mon Sep 17 00:00:00 2001 From: zhaiyuxin103 Date: Tue, 17 Dec 2024 23:02:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(pages):=20=E9=9A=90=E7=A7=81=E6=94=BF?= =?UTF-8?q?=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Livewire/Privacy.php | 27 ++++++++++++++++++++++ resources/views/livewire/privacy.blade.php | 11 +++++++++ routes/web.php | 1 + 3 files changed, 39 insertions(+) create mode 100644 app/Livewire/Privacy.php create mode 100644 resources/views/livewire/privacy.blade.php diff --git a/app/Livewire/Privacy.php b/app/Livewire/Privacy.php new file mode 100644 index 0000000..8f73db0 --- /dev/null +++ b/app/Livewire/Privacy.php @@ -0,0 +1,27 @@ +get(); + } + + #[Layout('layouts.guest')] + public function render(): View + { + return view('livewire.privacy'); + } +} diff --git a/resources/views/livewire/privacy.blade.php b/resources/views/livewire/privacy.blade.php new file mode 100644 index 0000000..bca984b --- /dev/null +++ b/resources/views/livewire/privacy.blade.php @@ -0,0 +1,11 @@ +
+
+ @foreach ($this->privacies as $value) +
+ {!! $value->content !!} +
+ @endforeach +
+
diff --git a/routes/web.php b/routes/web.php index 885b7f0..dfb050f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,4 +27,5 @@ Route::get('landing', App\Livewire\Landing::class)->name('landing'); Route::get('about', App\Livewire\About::class)->name('about'); + Route::get('privacies', App\Livewire\Privacy::class)->name('privacies'); });