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 推介 */