Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anders 2020-06-29 12:56:14 +02:00
commit 9bc7369ffe
2 changed files with 3 additions and 3 deletions

View File

@ -73,8 +73,8 @@ class ContactController extends Controller
*/ */
public function edit($id) public function edit($id)
{ {
$contacts = Contact::find($id); $contact = Contact::find($id);
return Response::detect("contacts.edit", ["contact" => $contacts]); return Response::detect("contacts.edit", ["contact" => $contact]);
} }
/** /**

View File

@ -6,7 +6,7 @@
@endsection @endsection
@section("path") @section("path")
<a href="{{ route('contacts.edit') }}" class="text-white">Rediger Bruger</a> / <a href="{{ route('contacts.update', ["contact" => $contact]) }}" class="text-white">Rediger Bruger</a> /
@endsection @endsection
@section("content") @section("content")