Skip to content

Instantly share code, notes, and snippets.

@jeffandersen
Created December 13, 2018 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffandersen/8d7ddae9ceeaf4ff7bccb8f785508545 to your computer and use it in GitHub Desktop.
Save jeffandersen/8d7ddae9ceeaf4ff7bccb8f785508545 to your computer and use it in GitHub Desktop.
<!-- resources/views/tasks.blade.php -->
<!-- ... -->
<!-- Delete Button -->
<form action="{{ url('task/'.$task->id) }}" method="POST">
{{ csrf_field() }}
{{ method_field('DELETE') }}
<button type="submit" class="btn btn-danger">
<i class="fa fa-trash"></i> Delete
</button>
</form>
<!-- ... -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment