Created
February 27, 2018 20:38
-
-
Save 3h5a9/80f3cc184d9e9efbb4c72c03cc991e6d to your computer and use it in GitHub Desktop.
laravel form problem
This file contains hidden or 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('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