Commit c6149eda by hfpp2012 yinsigan

Social Network Profile Design

1 parent 0a2f489e
......@@ -13,7 +13,8 @@ class ProfileController extends Controller
$user = User::whereUsername($username)->first();
// $user = User::where('username', $username)->first();
// $user = User::where('username', '=', $username)->first();
return $user;
dd($user);
// return $user;
// dd($user);
return view('user.profile', compact('user'));
}
}
@extends('layouts.app')
@section('content')
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-body text-center">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQe8W2ur7n_tTz1jE--CSLNEiDmN56hMyqIw-k-Z5Xt4AN34SZP" alt="">
<h1>{{ $user->name }}</h1>
<h5>{{ $user->email }}</h5>
<h5>{{ $user->dob }}</h5>
</div>
</div>
</div>
</div>
@endsection
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!