public function detachSocialAccount($socialDriver) { session(); user()->socialAccounts()->where('driver', '=', $socialDriver)->delete(); session()->flash('success', title_case($socialDriver) . ' account successfully detached'); return redirect(user()->getEditUrl()); }