Advertisement
Guest User

blade

a guest
Oct 19th, 2016
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1. @extends('layout')
  2.  
  3.  
  4. @section('content')
  5.     <h1>This is a test.</h1>
  6.     @if(Session::has('message'))
  7.         {{ Session::get('message') }}
  8.     @endif
  9.  
  10.     {!! Form::model($user, ['method'=>'put', 'route'=>['users.update', $user->ID], 'class'=>'form']) !!}
  11.          {{ csrf_field() }}
  12.     <div class="form-group">
  13.         {!! Form::label('Your Name') !!}
  14.         {!! Form::text('name', null,
  15.             ['required', 'class' => 'form-control', 'placeholder'=>'Your name']
  16.         ) !!}
  17.     </div>
  18.  
  19.     <div class="form-group">
  20.         {!! Form::label('Your E-mail Address') !!}
  21.         {!! Form::text('email', null,
  22.             ['required', 'class' => 'form-control', 'placeholder'=>'Your E-mail Address']
  23.         ) !!}
  24.     </div>
  25.     <div class="form-group">
  26.         {!! Form::submit('Update', ['class'=>'btn btn-primary']) !!}
  27.     </div>
  28.     {!! Form::close() !!}
  29.    
  30.     <ul>
  31.         @foreach($errors->all() as $error)
  32.             <li>{{ $error }}</li>
  33.         @endforeach
  34.     </ul>
  35.  
  36. @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement