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']]);