文件存储在project文件夹下的public / js / parsley.min.js和public / css / parsley.css
@extends('main')
@section('title','|创建新帖子')
@section('stylesheets')
{!! Html::style('css/parsley.css') !!}
@endsection
@section('content')
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Create New Post</h1>
<hr>
{!! Form::open(array('route' => 'posts.store' )) !!}
{{ Form::label('title', 'Title:')}}
{{ Form::text('title', null, array('class' => 'form-control'))}}
{{ Form::label('body', "Post Body:")}}
{{ Form::textarea('body', null, array('class' => 'form-control'))}}
{{ Form::submit('Create Post', array('class' => 'btn btn-success btn-lg btn-block', 'style' => 'margin-top: 20px'))}}
{!! Form::close() !!}
</div>
</div>
@endsection
@section('scripts')
{!! Html::script('/public/js/parsley.min.js') !!}
@endsection