/** * Delete a contact * * @return void */ public function deletecontactTask() { $contact = Contact::oneOrFail(Request::getInt('id')); // Get the hub id for the return $hid = $contact->hub_id; // Delete the contact $contact->destroy(); // Set the redirect App::redirect(Route::url($this->base . '&task=edit&id=' . $hid), Lang::txt('COM_TIME_HUBS_CONTACT_DELETE_SUCCESSFUL'), 'passed'); }