Kontakt frontend
This commit is contained in:
parent
8047e33ad3
commit
f16018cb15
|
@ -62,7 +62,6 @@ class ContactController extends Controller
|
|||
public function show($id)
|
||||
{
|
||||
return Response::detect("contacts.show", [ "contacts" => $id]);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -103,9 +102,10 @@ class ContactController extends Controller
|
|||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
|
||||
$contact = Contact::find($id);
|
||||
|
||||
$contact->delete();
|
||||
|
||||
return redirect()->route("contacts.index");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue