Skip to content

Instantly share code, notes, and snippets.

@3h5a9
Created February 27, 2018 20:38
Show Gist options
  • Select an option

  • Save 3h5a9/80f3cc184d9e9efbb4c72c03cc991e6d to your computer and use it in GitHub Desktop.

Select an option

Save 3h5a9/80f3cc184d9e9efbb4c72c03cc991e6d to your computer and use it in GitHub Desktop.
laravel form problem
@extends('main')
@section('title', ' | Create new post')
@section('content')
<div class="col-md- offset-2 col-md-8">
{!! Form::open(['route' => 'posts.store']) !!}
<div class="form-group">
{!! Form::label('title', 'Title:') !!}
{!! Form::text('title', null, ['class'=>'form-control', 'placeholder' => 'Title']) !!}
</div>
<div class="form-group">
{!! Form::label('body', 'Description:') !!}
{!! Form::textarea('description', null, ['class'=>'form-control', 'placeholder' => 'Description']) !!}
</div>
{!! Form::submit('Submit', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
</div>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment