Advertisement
Guest User

Blade

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