From 782d826bbdd533b5400dd4dd897d99dfbd5c6326 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Tue, 28 Feb 2023 20:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E6=8E=A8=E4=BB=8B?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index ce09df5..c00f990 100644 --- a/routes/web.php +++ b/routes/web.php @@ -83,7 +83,7 @@ function () { /* End 实名认证 */ /* Start 推介 */ - Route::resource('affiliates', AffiliateController::class)->only(['index', 'create', 'store', 'destroy']); + Route::middleware('resource_owner:affiliates')->resource('affiliates', AffiliateController::class)->only(['index', 'create', 'store', 'destroy']); Route::middleware('guest')->withoutMiddleware(['verified', 'auth:web'])->get('affiliates/{affiliate:uuid}', [AffiliateController::class, 'show'])->name('affiliates.show'); /* End 推介 */