Skip to content

Instantly share code, notes, and snippets.

@Rokt33r
Created March 31, 2014 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rokt33r/9886460 to your computer and use it in GitHub Desktop.
Save Rokt33r/9886460 to your computer and use it in GitHub Desktop.
Laravel 基礎 Lesson 6 - RESTful (app/views/posts/edit.blade.php)
@extends('layouts.master')
@section('title')
Edit {{$post->title}} - mylaravel
@stop
@section('body')
{{Form::open(['route'=>['posts.update',$post->id],'method'=>'PUT'])}}
{{Form::label('title', 'Title')}}<br>
{{Form::text('title', $post->title)}}<br>
{{Form::label('body', 'Body')}}<br>
{{Form::textarea('body', $post->body)}}<br>
{{Form::submit('Submit')}}
{{Form::close()}}
@stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment