The format is strict, and Laravel checks it
Laravel's APP_KEY is the one framework secret on this site whose format is genuinely validated. php artisan key:generate emits base64: followed by standard base64 of 32 random bytes — 51 characters in total. The base64: prefix is part of the value, not documentation: strip it and Laravel reads the remaining 44 characters as raw key bytes, and the length check fails. And it must be standard base64, with + and / and = padding. Feed it base64url and it decodes to different bytes with no error message, leaving you with an app that cannot decrypt what it encrypted yesterday.
32 bytes, not 32 characters
Laravel's own config/app.php comment says the key "should be set to a random, 32 character string". That is misleading: Encrypter::generateKey() asks for 32 bytes, which base64 prints as 44 characters. The byte count is driven by the cipher — aes-256-cbc (the default in every recent skeleton) wants 32 bytes, aes-128-cbc wants 16 — and Encrypter::supported() compares the decoded length against the cipher with strict equality. A 32-byte key on an AES-128 config throws immediately.
What rotating it costs
Everything Laravel has encrypted with the old key becomes unreadable: sessions, cookies, and any column you put behind encrypted casts. On a running app that means logged-out users at best and unrecoverable data at worst, so treat rotation as a migration, not a config change. Keep the key in .env, out of the repository, and generate a distinct one per environment — a staging key that also unlocks production is not a second key.