芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/src/Http/Controllers/TeamInvitationController.php
add( $invitation->team->owner, $invitation->team, $invitation->email, $invitation->role ); $invitation->delete(); return redirect(config('fortify.home'))->banner( __('Great! You have accepted the invitation to join the :team team.', ['team' => $invitation->team->name]), ); } /** * Cancel the given team invitation. * * @param \Illuminate\Http\Request $request * @param \Laravel\Jetstream\TeamInvitation $invitation * @return \Illuminate\Http\RedirectResponse */ public function destroy(Request $request, TeamInvitation $invitation) { if (! Gate::forUser($request->user())->check('removeTeamMember', $invitation->team)) { throw new AuthorizationException; } $invitation->delete(); return back(303); } }