Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layout')
- @section('content')
- <h1>This is a test.</h1>
- @if(Session::has('message'))
- {{ Session::get('message') }}
- @endif
- {!! Form::model($user, ['method'=>'put', 'route'=>['users.update', $user->ID], 'class'=>'form']) !!}
- {{ csrf_field() }}
- <div class="form-group">
- {!! Form::label('Your Name') !!}
- {!! Form::text('name', null,
- ['required', 'class' => 'form-control', 'placeholder'=>'Your name']
- ) !!}
- </div>
- <div class="form-group">
- {!! Form::label('Your E-mail Address') !!}
- {!! Form::text('email', null,
- ['required', 'class' => 'form-control', 'placeholder'=>'Your E-mail Address']
- ) !!}
- </div>
- <div class="form-group">
- {!! Form::submit('Update', ['class'=>'btn btn-primary']) !!}
- </div>
- {!! Form::close() !!}
- <ul>
- @foreach($errors->all() as $error)
- <li>{{ $error }}</li>
- @endforeach
- </ul>
- @stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement