Skip to content

Instantly share code, notes, and snippets.

@Rokt33r
Created March 29, 2014 19:54
Show Gist options
  • Save Rokt33r/9861727 to your computer and use it in GitHub Desktop.
Save Rokt33r/9861727 to your computer and use it in GitHub Desktop.
Laravel 基礎 Lesson 5 - Blade & Helper (app/views/posts/create.blade.php)
@extends('layouts.master')
@section('title')
Create a new post - mylaravel
@stop
@section('body')
{{Form::open(['url'=>'posts','method'=>'post'])}}
{{Form::label('title', 'Title')}}<br>
{{Form::text('title')}}<br>
{{Form::label('body', 'Body')}}<br>
{{Form::textarea('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