Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" action="{{ url('/user/pic') }}" enctype="multipart/form-data">
- <input type="hidden" name="_token" value="{{ csrf_token() }}" />
- <input type="hidden" name="id" value="{{Auth::user()->id}}" />
- <div class="form-group">
- <div class="fileinput fileinput-new" data-provides="fileinput">
- <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 230px; height: 230px;">
- <img src="{{Auth::user()->profile_pic==NULL ? URL::asset('favicon/propic.png') : URL::asset(Auth::user()->profile_pic) }}" alt="" />
- </div>
- <div>
- <span class="btn default btn-file">
- <label for="profile_pic">Choose an Image</label>
- <input id="profile_pic" name="profile_pic" type="file">
- </span>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment