diff --git a/app/Http/Controllers/Function/Link.php b/app/Http/Controllers/Function/Link.php index 93d5df3..c3f5d21 100644 --- a/app/Http/Controllers/Function/Link.php +++ b/app/Http/Controllers/Function/Link.php @@ -32,6 +32,12 @@ protected function ViewLink(Request $request): Factory|View|Application return view('function.link',$this->data); } + protected function ViewMakeFriend(): Factory|View|Application + { + $this->data['webSubTitle'] = '添加友链'; + return view('function.make-friend',$this->data); + } + private function GetFriendsLink(array &$data): void { $data['blogLink'] = DB::table('blog_link')->whereNotIn('blog_link.blogLocation',[0])->get()->toArray(); diff --git a/resources/views/function/link.blade.php b/resources/views/function/link.blade.php index 18d8574..44076e1 100644 --- a/resources/views/function/link.blade.php +++ b/resources/views/function/link.blade.php @@ -46,6 +46,39 @@ class="w-16 h-16 p-1 rounded-full ring-2 ring-gray-300 dark:ring-gray-500 me-2 s @endforeach
+ +