The property confirmingContactDeletion does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
26
}
27
28
public function deleteContact(string $id)
29
{
30
$contact = Contact::findOrFail($id);
31
$name = $contact->name;
32
$contact->delete();
33
34
session()->flash('message', __(':name is no longer your contacts.', compact('name')));