@extends('layout') @section('title', 'Edit a Contact') @section('content') {{ Form::model($contact, array('method' => 'PUT', 'route' => array('contacts.update', $contact->id))) }}

Edit A Contact

@if(Session::has('message')) @endif

Go ahead and change the fields that you want to alter. Any fields left untouched will remain the same.

{{ Form::label('name', 'Name') }} {{ Form::text('name', $contact->name, array('class' => 'form-control')) }}
{{ Form::label('email', 'E-Mail Address') }} {{ Form::text('email', $contact->email, array('class' => 'form-control')) }}
{{ Form::label('phone', 'Telephone Number') }} {{ Form::text('phone', $contact->phone, array('class' => 'form-control')) }}
{{ Form::label('company', 'Company Name') }} {{ Form::select('company', $companies, $contact->company_id, array('class' => 'form-control')) }}

Functions

{{ Form::submit('Update Contact', array('class' => 'btn btn-success btn-block')) }}
{{ Form::close() }}
Cancel and go to detail view Cancel and go to contacts
@stop