Skip to content

Commit c8ffd47

Browse files
committed
change view for laravel 5.5
1 parent cc59dcd commit c8ffd47

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

resources/views/index.blade.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
@forelse ($redirections as $key=>$redirect)
44
<form action="{{ route('redirection.destroy', $redirect->id) }}" method="POST" onsubmit="confirm('Are you sure?');">
5-
@method('DELETE')
6-
@csrf
5+
{!! method_field('DELETE') !!}
6+
{!! csrf_field() !!}
77
<a href="{{ route('redirection.edit', $redirect) }}">Edit </a> |
88
<button type="submit">Delete</button>
9-
{{-- <a href="#" onclick="confirmMessage('Are you sure?');return false">Delete </a> &nbsp; --}}
109
{{ $key+1 }}. {{ $redirect->from_url }} => {{ $redirect->to_url }}
1110
</form>
1211
@empty
@@ -15,12 +14,3 @@
1514

1615
<a href="{{ route('redirection.create') }}">Create</a>
1716

18-
{{-- <script>
19-
function confirmMessage(msg) {
20-
if (confirm(msg)) {
21-
var form = document.getElementById('deleteform');
22-
form.submit()
23-
}
24-
}
25-
</script> --}}
26-

0 commit comments

Comments
 (0)