Created
March 31, 2014 06:31
Laravel 基礎 Lesson 6 - RESTful (app/views/posts/show.blade.php)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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