PHP-069 / Intermediate
Trusting cookie values without signing or encryption
Why is this a problem?
Tampering with values such as is_premium=1 grants access to features.
How to fix it
php
// Use Laravel's default EncryptCookies and determine permissions from DB/server state
if ($request->user()?->isPremium()) { ... }