Instantly share code, notes, and snippets.

@jeffandersen jeffandersen/tasks.blade.php Secret
Created Dec 13, 2018

Embed
What would you like to do?
<!-- 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