-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e89037
commit e205f6e
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use App\Models\User; | ||
|
||
class UsersController extends Controller | ||
{ | ||
public function show(User $user) | ||
{ | ||
return view('users.show', compact('user')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@extends('layouts.app') | ||
|
||
@section('title', $user->name . ' 的个人中心') | ||
|
||
@section('content') | ||
|
||
<div class="row"> | ||
|
||
<div class="col-lg-3 col-md-3 hidden-sm hidden-xs user-info"> | ||
<div class="card "> | ||
<img class="card-img-top" src="https://cdn.learnku.com/uploads/images/201709/20/1/PtDKbASVcz.png?imageView2/1/w/600/h/600" alt="{{ $user->name }}"> | ||
<div class="card-body"> | ||
<h5><strong>个人简介</strong></h5> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p> | ||
<hr> | ||
<h5><strong>注册于</strong></h5> | ||
<p>January 01 1901</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-lg-9 col-md-9 col-sm-12 col-xs-12"> | ||
<div class="card "> | ||
<div class="card-body"> | ||
<h1 class="mb-0" style="font-size:22px;">{{ $user->name }} <small>{{ $user->email }}</small></h1> | ||
</div> | ||
</div> | ||
<hr> | ||
|
||
{{-- 用户发布的内容 --}} | ||
<div class="card "> | ||
<div class="card-body"> | ||
暂无数据 ~_~ | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
@stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters