From e270d80862181cb87b91d767f61d1c284407b651 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 24 Aug 2024 18:17:38 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9E=95=20Add=20`illuminate/cookie`=20to?= =?UTF-8?q?=20the=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 3051f751..2e12b15e 100644 --- a/composer.json +++ b/composer.json @@ -51,6 +51,7 @@ "illuminate/console": "^11.0", "illuminate/container": "^11.0", "illuminate/contracts": "^11.0", + "illuminate/cookie": "^11.0", "illuminate/database": "^11.0", "illuminate/encryption": "^11.0", "illuminate/events": "^11.0", From 82356e10b14a5d43bfcd45c9dc9a174da4b6c764 Mon Sep 17 00:00:00 2001 From: Brandon Date: Sat, 24 Aug 2024 18:17:45 -0500 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=A7=20Enable=20the=20default=20Coo?= =?UTF-8?q?kie=20middleware?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Configuration/Middleware.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Roots/Acorn/Configuration/Middleware.php b/src/Roots/Acorn/Configuration/Middleware.php index cf4a966f..559f00c5 100644 --- a/src/Roots/Acorn/Configuration/Middleware.php +++ b/src/Roots/Acorn/Configuration/Middleware.php @@ -54,11 +54,11 @@ public function getMiddlewareGroups() { $middleware = [ 'web' => array_values(array_filter([ - // \Illuminate\Cookie\Middleware\EncryptCookies::class, - // \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, + \Illuminate\Cookie\Middleware\EncryptCookies::class, + \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, - // \Illuminate\Foundation\Http\Middleware\ValidateCsrfToken::class, + // \Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, $this->authenticatedSessions ? 'auth.session' : null, ])),