-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
smoisset
committed
Sep 10, 2017
1 parent
43e76f0
commit 4920fbb
Showing
6 changed files
with
97 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ public function index() | |
*/ | ||
public function create() | ||
{ | ||
// | ||
return view('posts.create'); | ||
} | ||
|
||
/** | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@extends('main') | ||
|
||
@section('title', '| Create New Post') | ||
|
||
@section('content') | ||
|
||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<h1>Create New Post</h1> | ||
<hr> | ||
|
||
{!! Form::open(['route' => 'posts.store']) !!} | ||
{{ Form::label('title', 'Title:') }} | ||
{{ Form::text('title', null, array('class' => 'form-control', 'style' => 'margin-bottom: 20px;')) }} | ||
|
||
{{ 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 |
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