create.blade.php 878 B

123456789101112131415161718192021222324252627282930
  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. @include('layouts.errors')
  9. <div class="form-group">
  10. <label for="title">Title</label>
  11. <input type="text" class="form-control" id="title" name="title" />
  12. <p class="help-block">Keep it short and memorable</p>
  13. </div>
  14. <div class="form-group">
  15. <label for="body">Body</label>
  16. <textarea rows="10" class="form-control" id="body" name="body"></textarea>
  17. </div>
  18. <div class="form-group">
  19. <button type="submit" class="btn btn-primary">Publish</button>
  20. </div>
  21. </form>
  22. </div>
  23. @endsection