Permalink
Browse files

🚑 Ensure calendar deletion triggers model listeners

  • Loading branch information...
lorisleiva committed Sep 17, 2018
1 parent 9e0fa4b commit 7c0fe4bcf730c47ecd1f5e6fe26e7989799a8b03
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/Http/Controllers/GoogleAccountController.php
@@ -54,6 +54,8 @@ public function store(Request $request, Google $google)
*/
public function destroy(GoogleAccount $googleAccount, Google $google)
{
$googleAccount->calendars->each->delete();
$googleAccount->delete();
$google->revokeToken($googleAccount->token);

0 comments on commit 7c0fe4b

Please sign in to comment.