Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
adding routes to create new posts
- Loading branch information
1 parent
fe7b92c
commit b6dd99a
Showing
4 changed files
with
95 additions
and
0 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
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,36 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
@if (session('message')) | ||
<div class="alert alert-success"> | ||
{{ session('message') }} | ||
</div> | ||
@endif | ||
|
||
<form action="/admin/blog/post" method="post" class="container"> | ||
<input type="hidden" name="_token" value="{{ csrf_token() }}"> | ||
<div class="form-group"> | ||
<label for="title">Title</label> | ||
<input type="text" name="title" class="form-control" /> | ||
</div> | ||
<div class="form-group"> | ||
<label for="metaTitle">Meta Title</label> | ||
<input type="text" name="metaTitle" class="form-control" /> | ||
</div> | ||
<div class="form-group"> | ||
<label for="body">Body</label> | ||
<textarea name="body" class="form-control"></textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label for="metaDescription">Meta Description</label> | ||
<textarea name="metaDescription" class="form-control"></textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label for="urlSlug">URL Slug (optional)</label> | ||
<small>If not specified one will be created from the title</small> | ||
<input type="text" name="urlSlug" class="form-control" /> | ||
</div> | ||
<input type="submit" name="publish" class="btn btn-success" value="Publish" /> | ||
<input type="submit" name="draft" class="btn btn-default" value="Save Draft" /> | ||
</form> | ||
@stop |
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