Use route function everywhere (#1568)

This commit is contained in:
Alexis Saettler
2018-07-22 21:04:31 +02:00
committed by GitHub
parent 341ee04197
commit 0ec0e8591d
93 changed files with 408 additions and 388 deletions
@@ -68,7 +68,7 @@ class IntroductionsController extends Controller
$contact->logEvent('contact', $contact->id, 'update');
return redirect('/people/'.$contact->hashID())
return redirect()->route('people.show', $contact)
->with('success', trans('people.introductions_update_success'));
}
@@ -85,7 +85,7 @@ class IntroductionsController extends Controller
$contact->events()->forObject($gift)->get()->each->delete();
return redirect('/people/'.$contact->hashID())
return redirect()->route('people.show', $contact)
->with('success', trans('people.gifts_delete_success'));
}
}