Skip to content

Instantly share code, notes, and snippets.

@Rokt33r
Created March 31, 2014 06:31
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/9886462 to your computer and use it in GitHub Desktop.
Save Rokt33r/9886462 to your computer and use it in GitHub Desktop.
Laravel 基礎 Lesson 6 - RESTful (app/views/posts/show.blade.php)
@extends('layouts.master')
@section('title')
{{$post->title}} - mylaravel
@stop
@section('body')
<h1>{{$post->title}}</h1>
<p>{{$post->body}}</p>
{{Form::open(['route'=>['posts.destroy',$post->id],'method'=>'DELETE'])}}
{{link_to_route('posts.edit','Edit', $post->id)}}
{{Form::submit('Delete')}}
{{link_to('posts', 'Back to list')}}
{{Form::close()}}
@stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment