emzian7

Untitled

Oct 24th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.46 KB | None | 0 0
  1. <form method="post" action="{{ url('/user/pic') }}" enctype="multipart/form-data">
  2.                                     <input type="hidden" name="_token" value="{{ csrf_token() }}" />
  3.                                     <input type="hidden" name="id" value="{{Auth::user()->id}}" />
  4.  
  5.                                     <div class="form-group">
  6.                                         <div class="fileinput fileinput-new" data-provides="fileinput">
  7.                                             <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 230px; height: 230px;">
  8.                                                 <img src="{{Auth::user()->profile_pic==NULL ? URL::asset('favicon/propic.png') : URL::asset(Auth::user()->profile_pic) }}" alt="" />
  9.                                             </div>
  10.                                             <div>
  11.                                                                             <span class="btn default btn-file">
  12.                                                                                 <label for="profile_pic">Choose an Image</label>
  13.                                                                                 <input id="profile_pic" name="profile_pic" type="file">
  14.                                                                             </span>
  15.                                             </div>
  16.                                         </div>
  17.  
  18.                                     </div>
Advertisement
Add Comment
Please, Sign In to add comment