From e205f6ec78cf1501259a971eb7f6e1cc3ef2f954 Mon Sep 17 00:00:00 2001 From: Summer Date: Fri, 31 Jul 2020 03:52:56 +0000 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=AA=E4=BA=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8E=9F=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/UsersController.php | 14 +++++++++ resources/views/users/show.blade.php | 38 ++++++++++++++++++++++++ routes/web.php | 2 ++ 3 files changed, 54 insertions(+) create mode 100644 app/Http/Controllers/UsersController.php create mode 100644 resources/views/users/show.blade.php diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php new file mode 100644 index 000000000..c9e9b45b7 --- /dev/null +++ b/app/Http/Controllers/UsersController.php @@ -0,0 +1,14 @@ +name . ' 的个人中心') + +@section('content') + +
+ + +
+
+
+

{{ $user->name }} {{ $user->email }}

+
+
+
+ + {{-- 用户发布的内容 --}} +
+
+ 暂无数据 ~_~ +
+
+ +
+
+@stop diff --git a/routes/web.php b/routes/web.php index 718712d09..c46483bcd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -21,3 +21,5 @@ Route::get('email/verify', 'Auth\VerificationController@show')->name('verification.notice'); Route::get('email/verify/{id}/{hash}', 'Auth\VerificationController@verify')->name('verification.verify'); Route::post('email/resend', 'Auth\VerificationController@resend')->name('verification.resend'); + +Route::resource('users', 'UsersController', ['only' => ['show', 'update', 'edit']]);