create.blade.php 777 B

12345678910111213141516171819202122232425
  1. @extends('layouts.master')
  2. @section('content')
  3. <div class="col-sm-8 blog-main">
  4. <h1>Create a post</h1>
  5. <hr />
  6. <form method="post" action="/posts">
  7. {{ csrf_field() }}
  8. <div class="form-group">
  9. <label for="title">Title</label>
  10. <input type="text" class="form-control" id="title" name="title" />
  11. <p class="help-block">Keep it short and memorable</p>
  12. </div>
  13. <div class="form-group">
  14. <label for="body">Body</label>
  15. <textarea rows="10" class="form-control" id="body" name="body"></textarea>
  16. </div>
  17. <button type="submit" class="btn btn-primary">Publish</button>
  18. </form>
  19. </div>
  20. @endsection