Kontakt frontend

This commit is contained in:
frederikpyt 2020-06-29 13:07:17 +02:00
parent 8047e33ad3
commit f16018cb15
2 changed files with 15 additions and 2 deletions

View File

@ -62,7 +62,6 @@ class ContactController extends Controller
public function show($id) public function show($id)
{ {
return Response::detect("contacts.show", [ "contacts" => $id]); return Response::detect("contacts.show", [ "contacts" => $id]);
} }
/** /**
@ -103,9 +102,10 @@ class ContactController extends Controller
*/ */
public function destroy($id) public function destroy($id)
{ {
$contact = Contact::find($id); $contact = Contact::find($id);
$contact->delete(); $contact->delete();
return redirect()->route("contacts.index"); return redirect()->route("contacts.index");
} }
} }

View File

@ -0,0 +1,13 @@
@extends("admin.layout.base")
@extends("admin.layout.header")
@section("title")
Kontakter - Opret
@endsection
@section("path")
<a href="" class="text-white">Slet Kontakt</a> /
@endsection
@section("content")
@endsection